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

Tags

Data Science