Python | for loop quiz | Question 25

Last Updated :
Discuss
Comments

What is the purpose of the enumerate function in a for loop?

To create an enumerated list

To generate a sequence of numbers

To iterate over two lists simultaneously

To access both the index and the value of elements in an iterable

Share your thoughts in the comments