2011-03-30, 07:16 PM
You can't enumerate over a number. You can enumerate over strings, arrays, and dictionaries as they are iterable.
"x +=" is the same as "x = x +"
Code:
Variable = "124612"
for i, eachVariable in enumerate(Variable):
print(i + 2)Code:
2
3
4
5
6
7"x +=" is the same as "x = x +"
