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()
This question is part of this quiz :
Conditionals and Flow Control