MCPcopy 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
113print("Example 8")
114def 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
119print("Example 9")

Callers 1

item_039.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected