-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpizzaOrderProgram.py
More file actions
38 lines (29 loc) · 875 Bytes
/
Copy pathpizzaOrderProgram.py
File metadata and controls
38 lines (29 loc) · 875 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
32
33
34
35
36
37
38
smallSize= 15
mediumSize = 20
largeSize = 25
PepperoniForSmall = 2
PepperoniForMedium = 3
xtracheese = 1
size = input("Enter the size of your pizza? S,M,L: ")
addPepperoni = input("Do you want Pepporoni? Y or N: ")
extraCheese = input("Do you want extra cheese? Y or N: ")
bill = 0
if size.lower() == "s":
bill += smallSize
if addPepperoni.lower() =="y":
bill += PepperoniForSmall
if extraCheese.lower() =="y":
bill+=xtracheese
elif size.lower() == "m":
bill += mediumSize
if addPepperoni.lower() =="y":
bill += PepperoniForMedium
if extraCheese.lower() =="y":
bill+=xtracheese
elif size.lower() == "l":
bill += largeSize
if addPepperoni.lower() =="y":
bill += PepperoniForMedium
if extraCheese.lower() =="y":
bill+=xtracheese
print(bill)