Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 30)
30.
What is the purpose of the locals() function?
Retrieves a list of local variables
Converts a string to lowercase
Checks if a variable is of a certain type
Retrieves a dictionary of local symbols
Answer: Option
Explanation:
The locals() function returns a dictionary representing the current local symbol table.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.