how can i get the index number of a iterator? for instance:
i wante to return the number of times ive gone through the loop.
list = [(mark, jacky,jane),(stick,cheri,nice),(elly,younces,pluto)] for i in list: print i
this returns lists. but i want an output like:
>>1 >>2 >>3
how do i do this withought making another variable and adding to it for each iteration through the loop.
also: is there a similar expression like C's" index++ " for python.