Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ avg
Function
avg
recipes/Python/363219_Use_Jython_to_time_Java_code/recipe-363219.py:21–22 ·
view source on GitHub ↗
(seq)
Source
from the content-addressed store, hash-verified
19
return
reduce(
lambda
x,y:x+y,seq)
20
21
def
avg(seq):
22
return
sum(seq)/len(seq)
23
24
def
main():
25
Callers
1
main
Function · 0.85
Calls
1
sum
Function · 0.70
Tested by
no test coverage detected