Python | While Loop Quiz | Question 7

Last Updated :
Discuss
Comments

What is the purpose of the locals() function in a while loop?

To access local variables of the loop.

To define new local variables.

To exit the loop.

It is not a valid function in a while loop.

Share your thoughts in the comments