iterate over an array in python code example
Example 1: python for loop in array
for i in foo:
print(i) #outputs 'foo' then 'bar'
Example 2: for loop in python array
for x in range (1, 100, 1):
print(x)
for i in foo:
print(i) #outputs 'foo' then 'bar'
for x in range (1, 100, 1):
print(x)