object()
function is used to find the a featureless object which is a base for all classes in Python for the given input.
object()
function is a part of Python Built-in Functions.
Syntax of object()
Function
The syntax of
object()
function in Python is:
o = object()
Parameters of object()
Function in Python
x
– Where x
is any valid . This parameter is required.
Compatibility
object()
function is available and compatible with both Python 2.x
and 3.x
.
Return Value of object()
Function in Python
object()
function returns a featureless object which is a base for all classes for the given input.
Python object()
Function Example 1
Example CODE
Output:
Python object()
Function Example 2
Example CODE
Output: