2011-03-30, 04:04 PM
It's syntactic sugar.
^^^^ is the same as ^^^^
Code:
for i, eachVariable in enumerate(variable):
pass^^^^ is the same as ^^^^
Code:
i = 0
for eachVariable in Variable:
#Do stuff
i += 1