Lesson 29 of 34 · +120 xp
*args
Variable arguments.
Explained simply
Your task
Write: def total(*args): return sum(args)
Click 'Run code' to execute your code in a real sandbox.
Lesson 29 of 34 · +120 xp
Variable arguments.
Write: def total(*args): return sum(args)
Click 'Run code' to execute your code in a real sandbox.