Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python object() function is used to create an empty object. No methods or properties can be added to this object. It has built-in properties and methods which are default for all classes.

Syntax

object()

Parameters

No parameter is required.

Example:

In the below example, object() function is used to create an empty object.

Obj = object()
print(type(Obj))

The output of the above code will be:

<class 'object'>

❮ Python Built-in Functions