Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ pick_fruit
Function
pick_fruit
example_code/item_008.py:191–195 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
189
]
190
191
def
pick_fruit():
192
if
FRUIT_TO_PICK:
193
return
FRUIT_TO_PICK.pop(0)
194
else
:
195
return
[]
196
197
def
make_juice(fruit, count):
198
return
[(fruit, count)]
Callers
1
item_008.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected