-
-
Save MattCoxen/87ad09dcb29031aded7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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