-
Notifications
You must be signed in to change notification settings - Fork 0
/
barista waiter.py
48 lines (38 loc) · 1.18 KB
/
barista waiter.py
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
print("Hello welcome to Coffee house ")
name = input("what is your name: ")
if name == "Loki":
print("Dont try to Come in Evil Loki")
exit()
if name == "ben" or name == "yog":
evil = input("are you evil ")
good_deeds = int(input("how many good did have you done today"))
if evil == "yes" and good_deeds < 4:
print("get out you evil " + name)
exit()
else:
print("sorry for asking you can go " + name)
else:
print("Welcome to Coffee House " + name )
menu = "Coffee\nTea\nBlack Tea\nBlack coffee\nCold Coffee"
print("what would you like to have " + name + " today we are serving this \n" + menu)
order = input("what would you like to have " + " " +name +" ")
quantity = int(input("how much " +" "+ order +" "))
if order == "Coffee":
price = 20
elif order == "Tea":
price = 10
elif order == "Black Tea":
price = 15
elif order == "Black Coffee":
price = 25
elif order == "Cold Coffee":
price = 45
cream = input("do you want Ice Cream ")
if cream == "yes":
price = 60
else:
price = 45
else:
print("sorry we dont have that one")
total = price * int(quantity)
print(total)