Iteration For Loops
- Structures for iterating through iterables
Syntax
for item in iterable:
codeblock
for variable in iterable:
codeblock
For Loop Example
mylist = ['a','b','c']
for ch in mylist:
print(ch)
back |
Syntax
for item in iterable:
codeblock
for variable in iterable:
codeblock
mylist = ['a','b','c']
for ch in mylist:
print(ch)
back |