Untitled
Anonymous
python
01/05/2023 3:11 PM
416 B
18
Indexable
def check_if_enough_resources(choice):
for key, value in MENU[choice]['ingredients'].items():
# print(f"Key: {key}, value: {value}")
# print(f"Resources: {resources[key]}")
if value > resources[key]:
print(f'Not enough {key}.')
return False
return TrueEditor is loading...