Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # some code doing stuff
- while True:
- # more code doing stuff
- # maybe print a menu and ask for options
- choice = input('Some prompt: ')
- if choice == "choice 1":
- pass # do some stuff
- elif choice == "choice 2":
- pass # do some stuff
- elif choice == 'let me out':
- break
- else:
- print('That choice is not available. Please try again.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement