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