Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate word python

iterable = ["a","b","c"]
enumerate(iterable, start=0)	#enumerates any iterable object
>>[(0, 'a'), (1, 'b'), (2, 'c')]

Parameters:
Iterable: any object that supports iteration
Start: the index value from which the counter is 
              to be started, by default it is 0
 
PREVIOUS NEXT
Tagged: #enumerate #word #python
ADD COMMENT
Topic
Name
5+5 =