Run
x = ['apple', 'banana', 'cherry'] index = 0 while index < len(x): element = x[index] print(index, element) index += 1
Output