python loop by list code example
Example 1: how to iterate over a list in python
# Python list
my_list = [1, 2, 3]
# Python automatically create an item for you in the for loop
for item in my_list:
print(item)
Example 2: for loop in python array
for x in range (1, 100, 1):
print(x)