Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ logn_sum
Function
logn_sum
example_code/item_039.py:90–92 ·
view source on GitHub ↗
(base, logn_total, value)
Source
from the content-addressed store, hash-verified
88
89
print(
"Example 5"
)
90
def
logn_sum(base, logn_total, value):
# New first parameter
91
logn_value = math.log(value, base)
92
return
logn_total + logn_value
93
94
95
print(
"Example 6"
)
Callers
1
item_039.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected