Created
June 5, 2025 15:25
-
-
Save PavanPasupathi/b91245c5cd7cc3baebf4cfe70ec63b6c 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
print("Welcome to python pizza delivery!") | |
bill=0 | |
size=input("What size of pizza do you want? S,M or L: ") | |
if size == "S": | |
bill+=15 | |
elif size == "M": | |
bill+=20 | |
elif size == "L": | |
bill+=25 | |
else: | |
print("You typed a wrong input.") | |
pepperoni=input("Do you want pepperoni?: Y or N: ") | |
if pepperoni == "Y": | |
if size == "S": | |
bill+=2 | |
else: | |
bill+=3 | |
extra_cheese=input("Do you want extra cheese?: Y or N: ") | |
if extra_cheese == "Y": | |
bill+=1 | |
print(f"Your final bill is: ${bill}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment