Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ slice_bananas
Function
slice_bananas
example_code/item_008.py:98–100 ·
view source on GitHub ↗
(count)
Source
from the content-addressed store, hash-verified
96
97
print(
"Example 6"
)
98
def
slice_bananas(count):
99
print(f
"Slicing {count} bananas"
)
100
return
count * 4
101
102
class
OutOfBananas(Exception):
103
pass
Callers
1
item_008.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected