Learn Before
Code
Getting the type of an object
Use the type() function to get the type of an object in Python.
For example,
print(type(4))
outputs <class 'int'>.
0
4
Updated 2021-02-19
Contributors are:
Who are from:
Tags
Data Science
Getting the type of an object
Use the type() function to get the type of an object in Python.
For example,
print(type(4))
outputs <class 'int'>.
0
4
Contributors are:
Who are from:
Tags
Data Science