Skip to content

Instantly share code, notes, and snippets.

@PavanPasupathi
Created June 5, 2025 15:25
Show Gist options
  • Save PavanPasupathi/b91245c5cd7cc3baebf4cfe70ec63b6c to your computer and use it in GitHub Desktop.
Save PavanPasupathi/b91245c5cd7cc3baebf4cfe70ec63b6c to your computer and use it in GitHub Desktop.
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