Python Programming - Objects - Discussion

Discussion Forum : Objects - General Questions (Q.No. 5)
5.
What happens when you call the del statement on an object's attribute?
The entire object is deleted
The attribute is set to None
The attribute is removed from the object
The attribute is set to its default value
Answer: Option
Explanation:
The del statement removes an attribute from an object in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.