Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python enumerate start at 1

iterable = [1,2,3]

for index, item in enumerate(iterable, start=1):
    print(index, ':', item)
 
PREVIOUS NEXT
Tagged: #python #enumerate #start
ADD COMMENT
Topic
Name
3+4 =