Python Enumerate Function | Short tutorial

preview_player
Показать описание
Python’s enumerate() is for writing for loops when you need a count and the value from an iterable. enumerate() returns a tuple with the counter and value, so you don’t need to increment the counter yourself. It also gives you the option to specify the starting value for the counter.
Support the channel:
Рекомендации по теме
Комментарии
Автор

I had always disliked how teachers taugh in schools without getting into the core of why codes are written in a certain manner. The fact that you took the effort to explain why codes are written like this and the logic behind, to me this is invaluable because THAT is the important part. Instead of 'oh enumerate function has to be written like this'

Good teachers are hard to come by, but I found one here.

elliotyip