cities = ['London','Paris','Harare','Gaberone','Johanessburg']

#Instead of this use this code
# i = 0
# for city in cities:
#     i+=1
#     print(i, city)

#Use this instead

for i,city in enumerate(cities, 1):
    print(i,city)
9c6965d82271c5f0be7e4089224c4373eb6bbb0f
<mask token>

<mask token>
for i, city in enumerate(cities, 1):
    print(i, city)

cities = ['London', 'Paris', 'Harare', 'Gaberone', 'Johanessburg']
for i, city in enumerate(cities, 1):
    print(i, city)

cities = ['London','Paris','Harare','Gaberone','Johanessburg']

#Instead of this use this code
# i = 0
# for city in cities:
#     i+=1
#     print(i, city)

#Use this instead

for i,city in enumerate(cities, 1):
    print(i,city)