When i run my code, the number turns into 42.0 (what it's supposed to do) but does not stop when it turns into 42.0 (though the if statement or while loop) how would i get my code to stop?
import time
def life(inp):
inp = float(inp)
while float(inp) != float(42):
inp = inp*12/4/4+4+6.5
if float(inp) == float(42) or inp == 42:
print inp
break
print inp
time.sleep(0.1)
life(6)