Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate python

rozhix_shopping_list = ["wine", "Potato Chips", "sausages", "olive"]
for i, j in enumerate(rozhix_shopping_list):
    print(i, j)

#output
#0 wine
#1 Potato Chips
#2 sausages
#3 olive
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #enumerate #python
ADD COMMENT
Topic
Name
1+7 =