File tree Expand file tree Collapse file tree 1 file changed +36
-9
lines changed
Expand file tree Collapse file tree 1 file changed +36
-9
lines changed Original file line number Diff line number Diff line change 11# Restaurant Menu Dictionary
2- restaurant_menu = {
2+ menu = {
33 "Paneer Tikka" : 180 ,
44 "Chicken Wings" : 220 ,
55 "Spring Rolls" : 160 ,
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
You can’t perform that action at this time.
0 commit comments