MCPcopy 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
97print("Example 6")
98def slice_bananas(count):
99 print(f"Slicing {count} bananas")
100 return count * 4
101
102class OutOfBananas(Exception):
103 pass

Callers 1

item_008.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected