Is it priced?
Write is_priced(prices, item) that returns True if item is a key in
the dictionary prices.
is_priced({"apple": 40}, "apple") -> True
is_priced({"apple": 40}, "milk") -> False
def is_priced(prices, item):
...
Write is_priced(prices, item) that returns True if item is a key in
the dictionary prices.
is_priced({"apple": 40}, "apple") -> True
is_priced({"apple": 40}, "milk") -> False
def is_priced(prices, item):
...