Run
x = ['apple', 'banana', 'cherry'] for index, element in enumerate(x): print(index, element)
Output