MCPcopy Create free account
hub / github.com/LinkedInLearning/learning-python-2896241 / multi_add

Function multi_add

Ch2 - Basics/functions_finished.py:27–31  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

25
26# function with variable number of arguments
27def multi_add(*args):
28 result = 0
29 for x in args:
30 result = result + x
31 return result
32
33
34func1()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected