Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ get_batches
Function
get_batches
example_code/item_042.py:60–61 ·
view source on GitHub ↗
(count, size)
Source
from the content-addressed store, hash-verified
58
order = [
"screws"
,
"wingnuts"
,
"clips"
]
59
60
def
get_batches(count, size):
61
return
count // size
62
63
result = {}
64
for
name in order:
Callers
1
item_042.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected