LearnPy Hub
← Iterators & Generators problems
Medium

Running Average

Write a generator that receives numbers and yields the running average after each one (2 decimals). Print the averages on one line.

Input

One line of numbers.

Output

One line.

Sample 1

Input
2 4 6
Output
2.00 3.00 4.00

Sample 2

Input
5
Output
5.00
solution.py
Output appears here
Running Average · Python practice problem · LearnPy Hub