adplus-dvertising
frame-decoration

Question

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

Posted under Python

Answer: (b).To delete an attribute

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is delattr(obj,name) used for?