>>> a=520
>>> type(a)
<class 'int'>
>>> a=''
>>> type(a)
<class 'str'>
>>> a=5.2
>>> type(a)
<class 'float'>
>>> a=True
>>> type(a)
<class 'bool'>
>>> a=True
>>> type(a)
<class 'bool'>
>>> isinstance(a,bool)
True
>>> isinstance(a,int)
True
>>> isinstance(a,str)
False
>>> isinstance(a,float)
False
>>>