Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change the code below
- print("Welcome to Python Pizza Deliveries!")
- size = input("What size pizza do you want? S, M, or L ")
- add_pepperoni = input("Do you want pepperoni? Y or N ")
- extra_cheese = input("Do you want extra cheese? Y or N ")
- # Don't change the code above
- #Write your code below this line 👇
- small_pizza = 15
- medium_pizza = 20
- large_pizza = 25
- pepperoni = 3
- xcheese = 1
- total = 0
- if extra_cheese == "Y":
- total += xcheese
- if size == "S":
- total += small_pizza
- pepperoni = 2
- if size == "M":
- total += medium_pizza
- if size == "L":
- total += large_pizza
- if add_pepperoni == "Y":
- total += pepperoni
- print(
- f"Your total will be ${total}"
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement