Simple Multiplication is Giving Weird Result in Python

https://docs.python.org/3/faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations

This is the case in all programming languages not just Python (although the details sometimes differ).

For a very technical explanation, see What Ever Computer Scientist Should Know About Floating-Point Arithmetic.

See also this visual explanation.