floating point in python gives a wrong answer
Floating point arithmetic has built-in problems as it's based on a binary approximation of numbers.
There is a good explanation of this in the Python docs.
You can check out the decimal
module if you need more exact answers.
You can use round()
for example:
print(round(10 - 9.2, 2))