demo_float.py:
x = float(1) y = float(2.8) z = float("3") w = float("4.2") print(x) print(y) print(z) print(w)
➜ begtut>python demo_float.py
1.0
2.8
3.0
4.2