+ 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})

24th May 2020, 6:30 AM
Gaurav Giri
Gaurav Giri - avatar
1 Respuesta
24th May 2020, 6:45 AM
Oma Falk
Oma Falk - avatar