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...
En esta página del sitio puede ver el video en línea Python tip 27: enumerate() function de Duración hora minuto segunda en buena calidad , que subió el usuario learnbyexample 03 mayo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 63 veces y le gustó 0 a los espectadores. Disfruta viendo!