Skip to content

Instantly share code, notes, and snippets.

@MattCoxen
Created April 17, 2014 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattCoxen/87ad09dcb29031aded7c to your computer and use it in GitHub Desktop.
Save MattCoxen/87ad09dcb29031aded7c to your computer and use it in GitHub Desktop.
def asknewguest():
choice = input("Would you like to ADD or VIEW a guest, VIEW ALL guests, or EXIT?").upper()
if choice.islpha() == True:
if choice == "ADD":
enter_new_guest()
elif choice == "VIEW":
callinfo()
elif choice == "VIEW ALL":
print(guest_list)
asknewguest()
elif choice == "EXIT":
byebye()
else:
print("Sorry, I didn't understand that. Please try again.")
asknewguest()
else:
print("Sorry, only alphabetical values are accepted. Please try again.")
asknewguest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment