MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / out_of_stock

Function out_of_stock

example_code/item_008.py:62–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 print(f"Making {count} lemons into lemonade")
61
62def out_of_stock():
63 print("Out of stock!")
64
65count = fresh_fruit.get("lemon", 0)
66if count:

Callers 1

item_008.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected