Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 58)
58.
What is the purpose of the getattr function?
To get the attribute of an object.
To get the type of an object.
To get the value of a variable.
To get the length of an iterable.
Answer: Option
Explanation:
The getattr function in Python is used to get the value of a named attribute of an object.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.