Write a generator function running_total that yields the running total of numbers sent to it. The generator should start with a total of 0 and add to the total each time it receives a new number through send(). Write a script to demonstrate using this generator.
Write a generator function
running_total
that yields the running total of numbers sent to it. The generator should start with a total of 0 and add to the total each time it receives a new number through send(). Write a script to demonstrate using this generator.