Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
def
out_of_stock():
63
print(
"Out of stock!"
)
64
65
count = fresh_fruit.get(
"lemon"
, 0)
66
if
count:
Callers
1
item_008.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected