how to make a for loop loop over end of array in python code example
Example 1: python loop through list
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
Example 2: for loop in python array
for x in range (1, 100, 1):
print(x)
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
for x in range (1, 100, 1):
print(x)