Python Programming - Loops - Discussion

Discussion Forum : Loops - General Questions (Q.No. 10)
10.
In a for loop, which method is used to iterate over the keys of a dictionary?
keys()
items()
values()
enumerate()
Answer: Option
Explanation:
The keys() method is used to iterate over the keys of a dictionary in a for loop.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.