Run
myString = 'apple' for index, item in enumerate(myString): print(index, item)
Output