In my python program, an if statement is not being entered. I have simplified the code to the following:
x = -5 while x < 5: if (x == 0): prin
Floating point number representation might not be accurate enough. You should never test for zero equality but instead use something along
if (abs(x) < 1E-10) ...