Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count the iteration a list python

for count, item in enumerate(animals):
    print("Animal number", count + 1, "in the list is", item)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #iteration #list #python
ADD COMMENT
Topic
Name
6+9 =