Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ number_group
Function
number_group
example_code/item_007.py:98–102 ·
view source on GitHub ↗
(i)
Source
from the content-addressed store, hash-verified
96
97
print(
"Example 8"
)
98
def
number_group(i):
99
if
i % 2 == 0:
100
return
"even"
101
else
:
102
return
"odd"
103
104
x = number_group(i)
# Short call
105
print(x)
Callers
1
item_007.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected