Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list loop python

list = [1, 3, 5, 7, 9] 

# with index   
for index, item in enumerate(list): 
    print (item, " at index ", index)
    
# without index
for item in list:
  	print(item)
 
PREVIOUS NEXT
Tagged: #list #loop #python
ADD COMMENT
Topic
Name
1+4 =