Tutorial: Python Enumerate Function

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Note that this does quite similar to using range(len()) to obtain the index as well

For example,

for i in range(len(arr)):
# Get current element
curr = arr[i]

print("{} : {}".format(i, curr))

uuu
Автор

Just keep being awesome okay, I'm on my way 😂

AdetunjiTomiwa
welcome to shbcf.ru