For the \"q\" (quit) option in my program menu, I have the following code:
elif choice == \"q\": print()
That worked all right until I
See sys.exit. That function will quit your program with the given exit status.