Imagine I had this:
#file main.py
while alive:
msg = input()
print(msg)
Now in another thread I evaluate either if 'alive' is True or False. The problem is input() will keep the program hanging.
Is there a way to force it to move on without user interacting with the program? Or can I just terminate the whole program from inside the other thread?