-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyhton_mini_project.py
More file actions
82 lines (64 loc) · 2.18 KB
/
Copy pathPyhton_mini_project.py
File metadata and controls
82 lines (64 loc) · 2.18 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"""
#This code is a mini project Restaurant Management System
#Customer will order something then we will ask that if the customer needs something extra or not then we will display
#whole bill and in this way our project will be successful
"""
#CODE1
"""
print("Welcome to our Restaurant. Here's the menu:")
print("Pizza: Rs40")
print("Pasta: Rs50")
print("Burger: Rs60")
print("Salad: Rs70")
print("Coffee: Rs80")
print("Poha: Rs15")
menu = {}
menu["Pizza"] = 40
menu["Pasta"] = 50
menu["Burger"] = 60
menu["Salad"] = 70
menu["Coffee"] = 80
menu["Poha"] = 15
order = input("Enter your first item you want to order = ")
print("Order of ",order," has been added.")
print("Your Total Bill is 💲",menu[order])
choice = int(input(" Do you want order anything else ?\n 1.Yes 2.No\n"))
if choice == 1:
order2 = input("What you want to add to the order sir ? : ")
total = int(menu[order])+int(menu[order2])
print("Your order is \n 1.",order,"\n 2.",order2,"\n Your Total Bill is 💲",total)
elif choice == 2:
print("Your Total Bill is 💲",menu[order])
else:
print("Enter valid number 🔴")
#✅correct but not fully correct.
"""
#CODE2
menu = {
'Pizza':40,
'Pasta':50,
'Burger':60,
'Salad':70,
'Coffee':80,
'Ragda Patte':90,
'Poha':15
}
print("Welcome to PYTHON Restaurant")
print("Poha: 💲15\nPizza: 💲40\nPasta: 💲50\nBurger: 💲60")
print("Salad: 💲70\nCoffee: 💲80\nRagda Patte: 💲90")
order_total = 0
item1 = input("Enter the name of the item you want to order = ")
if item1 in menu:
order_total += menu[item1]
print("Your item ",item1," has been added to your order")
else:
print("Sorry ",item1," you have ordered is not currently available, Order from the menu.......")
another_order = input("Do you want to add another item from the Menu? (Yes/No) ")
if another_order == "Yes":
item2 = input("Enter the name of second item = ")
if item2 in menu:
order_total += menu[item2]
print("Item ",item2," has been added to order.")
else:
print("Ordered item ",item2," is not avialable")
print("The total amount of items to pay is 💲",order_total)