Conditionals | and Flow Control | Question 6

Last Updated :
Discuss
Comments

Q6-In a Python for loop, which method is used to iterate over the elements of an iterable (e.g., a list or a string) and retrieve both the index and the value?

A. enumerate()

B. iter()

C. range()

D. zip()

Share your thoughts in the comments