Python | While Loop Quiz | Question 19

Last Updated :
Discuss
Comments

In Python, can a while loop be used to iterate over a dictionary directly?

Yes

No

Only if the dictionary keys are integers.

Only if the dictionary has a single key.

Share your thoughts in the comments