MCPcopy 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
97print("Example 8")
98def number_group(i):
99 if i % 2 == 0:
100 return "even"
101 else:
102 return "odd"
103
104x = number_group(i) # Short call
105print(x)

Callers 1

item_007.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected