You can check what type of object is assigned to a variable using Python's built-in type() function. Common data types include:
type()
str
int
float
complex
list
tuple
range
dict
set
frozenset
bool
bytes
bytearray
memoryview
You can get the data type of any object by using the type() function:
lets create a new file and name it as demo_type.py and write this below code
x = 5 print(type(x))
Execute the code in following below manner.
C:\Users\My Name>python demo_type.py <class 'int'>