Skip to content

Commit 52bb57b

Browse files
committed
Update main.py
1 parent 7d6ca67 commit 52bb57b

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

myapp/main.py

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Restaurant Menu Dictionary
2-
restaurant_menu = {
2+
menu = {
33
"Paneer Tikka": 180,
44
"Chicken Wings": 220,
55
"Spring Rolls": 160,
@@ -10,16 +10,43 @@
1010
"Chicken Biryani": 250,
1111
"Tandoori Roti": 20,
1212
"Butter Naan": 30,
13-
"Garlic Naan": 35,
14-
"Gulab Jamun": 70,
15-
"Ice Cream": 90,
16-
"Rasgulla": 60,
17-
"Masala Chai": 30,
18-
"Cold Drink": 40,
19-
"Lassi": 50,
20-
"Coffee": 45
2113
}
2214

15+
print("🍽️ Welcome to Vikram's Restaurant!")
16+
print("Here's our menu")
17+
print("""
18+
"Paneer Tikka": 180,
19+
"Chicken Wings": 220,
20+
"Spring Rolls": 160,
21+
"French Fries": 120,
22+
"Butter Chicken": 320,
23+
"Paneer Butter Masala": 280,
24+
"Veg Biryani": 200,
25+
"Chicken Biryani": 250,
26+
"Tandoori Roti": 20,
27+
"Butter Naan": 30,
28+
""")
29+
30+
total_order = 0
31+
32+
item1 = input("enter item name: ")
33+
if item1 in menu:
34+
total_order += menu[item1]
35+
print(f"{item1} is added to your order")
36+
else:
37+
print(f"{item1} not found in menu")
38+
39+
item2= input("enter another item name:")
40+
41+
if item2 in menu:
42+
print(f"{item2} is added to your order!!")
43+
total_order += menu[item2]
44+
else:
45+
print(f"{item2} not found in menu")
46+
print(f"your total order is {total_order}")
47+
48+
49+
2350

2451

2552

0 commit comments

Comments
 (0)