Copyright (C) 2010-2020 Luke Olson
Copyright (C) 2020 Andreas Kloeckner
What will the following code snippet do?
from time import sleep
x = 0.0
while x != 1.0:
x += 0.1
print(repr(x))
sleep(0.1)
How do you prevent that from happening?