Untitled

 avatar
unknown
python
2 years ago
310 B
4
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 True
Editor is loading...