Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python index list enumerate

my_list = [21, 44, 35, 11]

for index, val in enumerate(my_list, start=1):
    print(index, val)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #index #list #enumerate
ADD COMMENT
Topic
Name
6+8 =