Can you explain what you mean by end the program without having to exit()?
If you don't want the window to close on its own but the program to end, then you can just leave the line after print(Okay, Goodbye!) blank. Simple delete the exit()
Since the program has no more lines to execute, it will sleep. So you can't interact anymore and the window is still open.
Presumably you want it like this so the player can see the exit message.
If you don't want the window to close on its own but the program to end, then you can just leave the line after print(Okay, Goodbye!) blank. Simple delete the exit()
Since the program has no more lines to execute, it will sleep. So you can't interact anymore and the window is still open.
Presumably you want it like this so the player can see the exit message.