Here is the 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
Even 'if' block never gets executed the condition is satisfied.
for example, if I put an increment of 0.5 i.e. i += 0.5 then the code works as it should. what is the issue?