Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate in range python

enumerated = list(enumerate(range(3), 1))

print(enumerated)
OUTPUT:
[(1, 0), (2, 1), (3, 2)]
 
PREVIOUS NEXT
Tagged: #enumerate #range #python
ADD COMMENT
Topic
Name
5+2 =