Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ log_sum_alt
Function
log_sum_alt
example_code/item_039.py:63–65 ·
view source on GitHub ↗
(value, log_total)
Source
from the content-addressed store, hash-verified
61
62
print(
"Example 2"
)
63
def
log_sum_alt(value, log_total):
# Changed
64
log_value = math.log(value)
65
return
log_total + log_value
66
67
68
print(
"Example 3"
)
Callers
2
item_039.py
File · 0.85
log_sum_for_reduce
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected