Our programs are executed 1 instruction at a time from top to bottom:
First instruction
Second instruction
Third instruction
Modify this program so that it counts to 3:
Repeating ourselves a fixed number of times is tedious
for loops provide a way to iterate over a series of
items (formally an Iterable in Python)
Alter this program to count from 0 to 5
range generates items to iterate over in Pythonstop items.range(3) will count from 0 to
2 (0,1,2).range(0,13,3)Alter this program to count from 10 to 50 by 10s