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.

Similar Reads

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...

delattr() Function in Python

Python delattr() Function is used to delete an object attribute in Python. It takes two arguments, the first one is the class object from which we want to delete, second is the name of the attribute which we want to delete. We can use delattr() to remove an attribute dynamically at runtime in Python....

Python delattr() Examples

...