Run
string1 = 'apple' for index, ch in enumerate(string1): print(index, ':', ch)
Output