Open In App

Python | Namespaces and Scope Quiz | Question 10

What does the locals() function return in Python?

(A)



All global variables

(B)



All local variables

(C)

Both global and local variables

(D)

The current namespace

Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized