Home >>Python Built-in Functions >Python type() Function
Python type() function is used to return the type of the given input object.
Syntax:Parameter | Description |
---|---|
object | This is a required parameter. If only one parameter is specified then the type of this object will be returned. |
bases | This is an optional parameter. It defines the base classes. |
dict | This is an optional parameter. It defines the namespace with the definition for the class. |
a = ('Abhi', 'Jerry', 'Mickey')
b = "PHPTPOINT"
c = 85
x = type(a)
y = type(b)
z = type(c)
print(x)
print(y)
print(z)