Skip to content

Instantly share code, notes, and snippets.

@alekonko
Created February 5, 2023 10:52
Show Gist options
  • Save alekonko/1888a014f698eff3540d9a54480cef0b to your computer and use it in GitHub Desktop.
Save alekonko/1888a014f698eff3540d9a54480cef0b to your computer and use it in GitHub Desktop.
valid = {"a","b","x"}
def getMyDish(customerPref):
if customerPref == "a" :
return "Mi spiace, TortaDiRiso finita"
if customerPref == "x" :
return "! EasterEgg !"
return "Ottima scelta, hai scelto VattelaaprendereneinXXX !!"
while True:
myChoice = input ("Buonasera, questa sera possiamo offrirle: \n\n A) Torta di Riso \n B) VattelaaprendereneinXXXX \n \n Cosa gradisce ? [A/B] :")
if myChoice.lower() in valid:
print ("\n" + getMyDish(myChoice.lower()) + "\n")
else:
print ("Mi spiace in questo momento di pronto abbiamo solo questo... \n ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment