Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
  
 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #iterate #list #python
ADD COMMENT
Topic
Name
4+8 =