how can i use for loop on list in python code example
Example: 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)
# 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)