Python 2.4.4, Solaris 10.

a_list = [item1, item2, item3]
for item in a_list:
    print 'Item number', ???, 'is:', item

Is there an easy, clever, Pythonic way (other than setting up a
counter) to replace ??? with the current index of item in a_list?

-- 
boB
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to