Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop list

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

# with index   
for index, item in enumerate(list): 
    print (item, " at index ", index)
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #python #loop #list
ADD COMMENT
Topic
Name
9+4 =