Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python enumerate() function

fruits = ['Banana', 'Apple', 'Lime']
list(enumerate(fruits))

# Output
# [(0, 'Banana'), (1, 'Apple'), (2, 'Lime')]
 
PREVIOUS NEXT
Tagged: #Python #function
ADD COMMENT
Topic
Name
9+3 =