Код: Выделить всё
# version1
a = ["child", "car", "grave", "happy", "suprise"]
for index, value in zip(range(len(a)), a):
print("have more control")
# version2
for index, value in enumerate(a):
print("have more life")
Подробнее здесь: https://stackoverflow.com/questions/798 ... -enumerate
Мобильная версия