Back to Lesson

Data Accumulator

Build flexible argument packing definitions exploiting unpacked configurations.

Instructions

  • Create a function
    sum_all(*args)
    .
  • It should utilize the packed
    args
    tuple representation to execute
    sum(args)
    natively, returning the summation.
  • Print the returned value of
    sum_all(10, 20, 30, 40)
    .
main.py
main.py