Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ logn_sum_last
Function
logn_sum_last
example_code/item_039.py:114–116 ·
view source on GitHub ↗
(logn_total, value, *, base=10)
Source
from the content-addressed store, hash-verified
112
113
print(
"Example 8"
)
114
def
logn_sum_last(logn_total, value, *, base=10):
# New last parameter
115
logn_value = math.log(value, base)
116
return
logn_total + logn_value
117
118
119
print(
"Example 9"
)
Callers
1
item_039.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected