Apr-01-2020, 03:04 PM
(This post was last modified: Apr-01-2020, 03:04 PM by deanhystad.)
the function true() (HORRIBLE NAME) does not set the global variable done, it creates a local variable that is also named done but is not related to the global done at all. It is the same as if you wrote:
done = 0 def true(): finished = 1 while done == 0: