Hard
Generator with send()
Write a generator
averager() that receives numbers via send() and yields the current average. Prime it with next(), send each input number, and print each average with 2 decimals on one line.Input
One line of numbers.
Output
One line.
Sample 1
Input
10 20 30
Output
10.00 15.00 20.00
Sample 2
Input
5
Output
5.00
Output appears here