I have a dictionary:
meals = {'Pasta Bolognese' : ['pasta', 'tomato sauce', 'ground beef'],
'Cold Salad' : ['greens', 'tomato'],
'Warm Salad' : ['greens', 'tomato', 'corn', 'chickpeas', 'quinoa'],
'Sandwich' : ['bread', 'turkey slices', 'cheese', 'sauce']}
and a list:
ingredients = ['bread', 'chickpeas', 'tomato', 'greens']
I want to get a key from dictionary if all its values are present in the list. So for current situation I want to get 'Cold Salad' since both 'greens' and 'tomato' are in the list.