Python object() Function
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 example below, 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