demo_type_float2.py:
x = float(20.5) #display x: print(x) #display the data type of x: print(type(x))
C:\Users\My Name>python demo_type_float2.py
20.5
<class 'float'>