Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 64)
64.
What does the vars function do?
It returns the names of all variables in the local namespace.
It returns the values of all variables in the local namespace.
It returns the names and values of all variables in the local namespace.
It returns the attributes of an object.
Answer: Option
Explanation:
The vars function in Python returns a dictionary containing the names and values of all variables in the local namespace.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.