demo_ref_enumerate.py:
x = ('apple', 'banana', 'cherry') y = enumerate(x) print(list(y))
C:\Users\My Name>python demo_enumerate.py
[(0, 'apple'), (1, 'banana'), (2, 'cherry')]