A curated list of good to know Python Snippets. Visit
Advertise with us
Python Multiple Choice Questions
What is delattr(obj,name) used for?
A. To print deleted attribute
B. To delete an attribute
C. To check if an attribute is deleted or not
D. To set an attribute
Explanation: delattr(obj,name) deletes an attribute in a class.
Please subscribe to get the latest articles in your mailbox.
Get a .COM for just $5.98!
© 2021-2022 Python Circle