Skip to content

Commit a19cfb0

Browse files
committed
Added pizza_order.py to Python-Basic-to-Advance repo
1 parent 3d92769 commit a19cfb0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pizza_order.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pizza_size=input("Which size of pizza do you want?")
2+
bill=0
3+
if pizza_size=='S' or pizza_size=='s':
4+
bill+=100
5+
print("Small pizza size is 100 Rs.")
6+
elif pizza_size=='M' or pizza_size=='m':
7+
bill+=200
8+
print("Medium pizza size is 200 Rs.")
9+
else:
10+
bill+=300
11+
print("Large pizza size is 300 Rs.")
12+
add_pepperoni=input("Do you want to add pepperoni(Y/N)?")
13+
if add_pepperoni=='Y'or add_pepperoni=='y':
14+
if pizza_size=='S'or pizza_size=='s':
15+
bill+=30
16+
else:
17+
bill+=50
18+
extra_cheese=input("Do you want extra cheese(Y/N)")
19+
if extra_cheese=='Y'or extra_cheese=='y':
20+
bill+=20
21+
print(f"Your final bill is {bill}")
22+

0 commit comments

Comments
 (0)