Pacific Beach Drive

Mike's Drive.

Follow me on GitHub

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