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.
This question is part of this quiz :
Python While Loop Quiz