+ 1
Why isn't it printing True?
def cakes(recipe, available): if all(list(recipe.keys())) in list(available.keys()): print(True) else: print(False) cakes({"flour": 500, "sugar": 200, "eggs": 1}, {"flour": 1200, "sugar": 1200, "eggs": 5, "milk": 200})
1 Respuesta