One typical use of a for loop is to repeat a certain task a fixed number of times:
n = 30
for iteration in range(n):
... # a statement here gets executed n times
One typical use of a for loop is to repeat a certain task a fixed number of times:
n = 30
for iteration in range(n):
... # a statement here gets executed n times