MCPcopy Index your code
hub / github.com/RustPython/RustPython / total

Function total

extra_tests/snippets/syntax_function_args.py:7–8  ·  view source on GitHub ↗
(a, b, c, d)

Source from the content-addressed store, hash-verified

5 return x+y
6
7def total(a, b, c, d):
8 return sum(sum(a,b), sum(c,d))
9
10
11assert total(1,1,1,1) == 4

Callers 1

Calls 1

sumFunction · 0.70

Tested by

no test coverage detected