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