Vidyalelo
Python · Q28

Classes and Objects in Python

Programming · Python · question 28

Q28

What is getattr() used for?

A.
To access the attribute of the object
Answer
B.
To delete an attribute
C.
To check if an attribute exists or not
D.
To set an attribute

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board