Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 48)
48.
What is the purpose of the locals function?
To create a local variable.
To access the local namespace.
To convert a dictionary to a list.
To delete a local variable.
Answer: Option
Explanation:
The locals function in Python is used to access the local namespace, which contains local variables.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.