for variable in sequence:
statement1
statement2
...
statementn
else:
statement1
statement2
...
statementm
The for loop is a generic sequence iterator:
It can step through the items of any ordered sequence object.
The for loop works on
>>> for c in "Python":
... print(c)
...
P
y
t
h
o
n
>>>