Problem:

I enter the following code and `bool_four`

evaluates to `False`

, since `not False`

evaluates to `True`

. It must have something to do with the math expression after the “and”.

Expectations:

Since 2.3 + 3.4 = 5.7 in real life, I expect the expression `2.3 + 3.4 == 5.7`

to evaluate to True, but it does not. In the Python Shell on my computer I computed this and similar expressions and the result was:

A Codecademy advisor referred me to this site for an explanation: https://stackoverflow.com/questions/3049101/floating-point-equality-in-python-and-in-general, but I do not understand. Could anyone explain this weirdness?

Code:

`bool_four = not False and 2.3 + 3.4 == 5.7`

Thanks.