How To Iterate Over A List In Python

Source URL: N/A

Language: python

Created on: 2020-06-03 16:58:26

# 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)
  
 
How To Iterate Over A List In Python
content_copy