Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ sum
Function
sum
recipes/Python/363219_Use_Jython_to_time_Java_code/recipe-363219.py:17–19 ·
view source on GitHub ↗
(seq)
Source
from the content-addressed store, hash-verified
15
16
17
def
sum(seq):
18
# no sum in Jython 2.1, we will use reduce
19
return
reduce(
lambda
x,y:x+y,seq)
20
21
def
avg(seq):
22
return
sum(seq)/len(seq)
Callers
8
avg
Function · 0.70
dbfwriter
Function · 0.50
measure
Method · 0.50
train
Function · 0.50
msum
Function · 0.50
frsum
Function · 0.50
wrapper
Function · 0.50
summary
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected