Write running_total(nums) that returns the cumulative sums: [3, 1, 4] → [3, 4, 8].
running_total(nums)
[3, 1, 4]
[3, 4, 8]
running_total([3, 1, 4]) → [3, 4, 8]
running_total([]) → []
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.