olliesilvester / htss-rig-bluesky-work-experience

Config and scripts for using hte HTSS rigs
Apache License 2.0
0 stars 0 forks source link

Generators part 2 #6

Open olliesilvester opened 2 months ago

olliesilvester commented 2 months ago

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.