-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpizza_delivery_program.py
More file actions
57 lines (53 loc) · 1.72 KB
/
Copy pathpizza_delivery_program.py
File metadata and controls
57 lines (53 loc) · 1.72 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
print("Welcome to python pizza deliveries!")
total = 0
pizza_size = input("Enter the size of pizza you want: S, M, L: ")
with_pepperoni = input("Do you want pepperoni? Y or N: ")
withcheese = input("Do you want extra cheese? Y or N: ")
if pizza_size == "S":
total += 15
if with_pepperoni == 'Y':
total+= 2
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")
elif with_pepperoni == 'N':
total
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")
elif pizza_size == "M":
total += 20
if with_pepperoni == 'Y':
total+= 2
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")
elif with_pepperoni == 'N':
total
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")
elif pizza_size == "L":
total += 25
if with_pepperoni == 'Y':
total+= 2
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")
elif with_pepperoni == 'N':
total
if withcheese == 'Y':
total+=1
print(f"Your final bill is: ${total}.")
elif withcheese == 'N':
print(f"Your final bill is: ${total}.")