Medium
Running Total Generator
Write a generator
running_total(nums) that yields the total so far after each number. Read integers and print the yielded values on one line.Input
Integers separated by spaces.
Output
One line.
Sample 1
Input
1 2 3 4
Output
1 3 6 10
Sample 2
Input
5
Output
5
Output appears here