Hi, a = ['Ron', 'Harry', 'Hermoine'] b = ['25th oct', '27th oct', '29th oct'] c = ['Charms', 'DADA', 'Potions'] I want to print like this: Ron - 25th oct Charms Harry - 27th oct DADA Hermoine - 29th oct Potions
The items in each list are populated dynamically so I don't know how many items will be there in each list, every time the program runs. I tried: >>> for x in zip(a, b, c): print x But that gives: ('Ron', '25th oct', 'Charms') ('Harry', '27th oct', 'DADA') ('Hermoine', '29th oct', 'Potions') ??? Saad
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor