Run
my_list = ['apple', 'banana', 'cherry'] for i in range(len(my_list)): print(i)
Output