Python delattr() Syntax
delattr (object, name)
Parameters:
Object: An object from which we want to delete the attribute
name: The name of the attribute we want to delete
The delattr() method returns a complex number.
Python delattr() Function
In Python, the delattr()
function is used to delete an attribute from an object. In this article, we will learn about the Python delattr() function.