MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / avg

Function avg

src/util/helper.py:265–269  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

263
264
265def avg(items):
266 if len(items) > 0:
267 return sum(items) / len(items)
268 else:
269 return 0
270
271
272def isIp(ip):

Callers

nothing calls this directly

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected