Answers for "python enumerate start at 1"

-1

python enumerate start at 1

iterable = [1,2,3]

for index, item in enumerate(iterable, start=1):
    print(index, ':', item)
Posted by: Guest on August-08-2021

Code answers related to "python enumerate start at 1"

Python Answers by Framework

Browse Popular Code Answers by Language