Please support this website.
Visit the Amazon using this affiliate link
. There won't be any difference in your purchage, we will get some commission for every purchase you make.
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.
© 2022-2023 Python Circle