Write total(nums) that returns the sum of all numbers in the list (0 for an empty list).
total([1, 2, 3]) → 6
total([]) → 0
Submit runs 5 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.