PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
SALE
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
What is getattr() used for?
A. To access the attribute of the object
B. To delete an attribute
C. To check if an attribute exists or not
D. To set an attribute
Show Answer
Next Question
Correct Answer:
A
Explanation: getattr(obj,name) is used to get the attribute of an object.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap