You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
468 B

print("Thank you for choosing Python Pizza")
# Small $15
# Medium $20
# Large $25
size = input()
# Small +$2
# Medium or Large +$3
add_pepperoni = input()
# Any size +$1
extra_cheese = input()
price = 0
if size == "S":
price += 15
if add_pepperoni == "Y":
price += 2
elif size == "M":
price += 20
if add_pepperoni == "Y":
price += 3
else:
price += 25
if extra_cheese == "Y":
price += 1
print(f"Your final bill is: {price}")