-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcafeSystem.py
More file actions
44 lines (38 loc) · 1.1 KB
/
Copy pathcafeSystem.py
File metadata and controls
44 lines (38 loc) · 1.1 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
menu={"Pizza":120,"Pasta":70,"Burger":50,"Salad":70,"Coffee":60}
print ("-------welcome to TAETAE'S LAND --------")
print("Here is the menu :")
for i in menu:
print(f"{i} : rs{menu[i]}")
cost=0
order_list={}
k=True
def order(item,o_list,r):
if item in o_list:
o_list[item]+=r
else:
o_list[item]=r
a=input("what would you like to enjoy in our TAETAE'S LAND :").capitalize()
r=menu.get(a)
if(r==None):
print("this item is not present in our TAETAE'S LAND")
else:
cost+=r
order_list[a]=menu.get(a)
while (k==True):
b=input("Do you want anything else?").lower()
if(b=="yes"):
c=input("enter you order:").capitalize()
r=menu.get(c)
if(r==None):
print("this item is not present in our TAETAE'S LAND")
else:
cost+=r
order(c,order_list,r)
else:
print("Here is your bill :",cost)
for i in order_list:
print(i,": rs",order_list[i])
print()
print("I hope you enjoyed your time in our lovable TAETAE'S LAND\nHave a good day !!")
k=False
break