When you use a for loop, you get one element per each iteration. If you need the index of the elements as well, use the `enumerate()` built-in function. You'll get a tuple value per each iteration, containing index (starting with 0 by default) and the value at that index.
This video is based on content from my "100 Page Python Intro" ebook: https://github.com/learnbyexample/100...
On this page of the site you can watch the video online Python tip 27: enumerate() function with a duration of hours minute second in good quality, which was uploaded by the user learnbyexample 03 May 2023, share the link with friends and acquaintances, this video has already been watched 63 times on youtube and it was liked by 0 viewers. Enjoy your viewing!