Python object()

Python object() builtin function is used to create a new featureless object. object is kind of base for all classes in Python.

In this tutorial, we will learn about the syntax of Python object() function, and learn how to use this function with the help of examples.

Syntax

The syntax of object() function is

</>
Copy
object()

object() function takes no arguments.

Returns

The function returns object.

Example

In this example, we create a new object using object() function.

Python Program

</>
Copy
x = object()
print(x)

Output

<object object at 0x100ab84d0>

Conclusion

In this Python Tutorial, we have learnt the syntax of Python object() builtin function, and also learned how to use this function, with the help of Python example programs.