Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
185 B
3
Indexable
Never
def check_if_enough_resources(users_choice):
    for key, value in MENU[users_choice]['ingredients'].items():
        if resources[key] < value:
            return False
    return True