Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
310 B
2
Indexable
Never
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 True