create array using for loop python code example
Example 1: python for loop in array
for i in foo:
print(i) #outputs 'foo' then 'bar'
Example 2: python for loop array
print("Hello, world")
for i in foo:
print(i) #outputs 'foo' then 'bar'
print("Hello, world")