-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpizza order.py
More file actions
32 lines (29 loc) · 798 Bytes
/
pizza order.py
File metadata and controls
32 lines (29 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#NS: Build your own pizza #
print("Welcome to build your own pizza's")
print("Prices start at S:£5 / M:£10 / L:£15")
size = input("What size of pizza would you like? S, M, L: ")
pepperoni = input("Would you like some pepperoni added? Y or N: ")
extra_cheese = input("Would you like extra cheese Y or N: ")
bill = 0
if size == "s":
bill = 5
if pepperoni == "y":
bill += 2
if extra_cheese == "y":
bill +=1
print("Your total bill is:£",bill)
elif size == "m":
bill = 10
if pepperoni == "y":
bill += 3
if extra_cheese == "y":
bill +=1
print("Your total bill is:£",bill)
else:
size == "l"
bill = 15
if pepperoni == "y":
bill += 3
if extra_cheese == "y":
bill +=1
print("Your total bill is:£",bill)