Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with my code
#3
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() Wink
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.
Reply


Messages In This Thread
I need help with my code - by Dynamix123 - Jun-20-2018, 12:59 PM
RE: I need help with my code - by buran - Jun-20-2018, 01:01 PM
RE: I need help with my code - by Nwb - Jun-20-2018, 01:56 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020