Open this example in the interactive library
Source code
print(list(enumerate(['red', 'blue'], start=1)))Sample output
[(1, 'red'), (2, 'blue')]

Enumerate from one. A self-contained example using the Python standard library.
Open this example in the interactive library
print(list(enumerate(['red', 'blue'], start=1)))[(1, 'red'), (2, 'blue')]