CJCoding With Joseph
15free / daySign inCreate account

Average Until Done

Read marks one per line with the prompt Mark: until the word done, converting each one with float(). Then print Average: <value> with exactly two decimals (:.2f), or No numbers. when nothing was entered before done. Input: zero or more numbers, one per line, then the line done. The prompts are part of the output and run together on one line in front of the result, as in Expected Output.

Expected Output:

Mark: Mark: Mark: Average: 85.00

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Menus & Validation
📥 Auto-Input:
80\n90\ndone\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.