-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestes.py
More file actions
45 lines (39 loc) · 903 Bytes
/
testes.py
File metadata and controls
45 lines (39 loc) · 903 Bytes
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
MENU = {
"ESPRESSO": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"LATTE": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"CAPPUCCINO": {
"ingredients": {
"water": 250,
"milk": 100,
"coffee": 24,
},
"cost": 3.0,
}
}
STORAGE = {"ingredients": {
"water": 180,
"milk": 1000,
"coffee": 500,
}
}
print(STORAGE["ingredients"])
print(MENU["LATTE"]["ingredients"])
for item in STORAGE["ingredients"]:
if STORAGE["ingredients"][item] < MENU['LATTE']["ingredients"][item]:
print('Falta = ', item)
print('Tem tudo')
print(MENU["CAPPUCCINO"]['cost'])
print(4/5)