Here is a python while loop code I am using:
i = 0.0
while i < 9.0:
y = 13.0 - i
if (y -i) == 6.0:
print '[+] Solution found!'
print 'x = ', i
print 'y = ', y
print 'z =', 8.0 - i
i += 0.1
The problem is that 'if' block never gets executed even when condition is satisfied. On the other hand, if I put increment of 0.5 i.e. i += 0.5
then the code works as it should. Any idea what is causing the issue?