Loops
I
In Python we loop over elements in a sequence
The loop body is indicated by indentation
>>>
for
item
in
sequence
:
...
do_something(item)
...
do_something_else(item)
Loops over each value in
sequence
and assigns that
value to
item
.