Answers for "calculations in ordering pizza"

1

calculations in ordering pizza

rint("Oder your pizza")
pizza_size = input("Which size you want \nLarge \nMidimum \nSmall\ pizza:- ").lower()
veg_or_non_veg = input("How hould your pizza be veg or non veg:- ").lower()
bill = 0
if pizza_size == "small":
    bill += 100
elif pizza_size == "midimum":
    bill += 150
elif pizza_size == "large":
    bill += 200
else:
    print("Your input is not correct")

if veg_or_non_veg == "non veg":
    bill += 90
elif veg_or_non_veg == "veg":
    bill += 9
else:
    print("invald input")
print("your final bill is",bill)
Posted by: Guest on July-02-2021

Browse Popular Code Answers by Language