Created
February 5, 2023 10:52
-
-
Save alekonko/1888a014f698eff3540d9a54480cef0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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