float
Data typesWhat this creature is
A float is a number with a decimal point. Use it for measurements, ratios, and any value that is not a whole number.
Why you will regret ignoring it
Many real-world values (money, science, graphics) need decimals. Floats are the usual way to represent them in Python.
Example
pi_approx = 3.14
half = 0.5
Common disgrace
Comparing two floats with == when they came from math operations — tiny rounding differences can make them not exactly equal.
Trial by code
Store two floats, multiply them, and print the result rounded to two decimal places.