Test scores
Task
The teacher enters test scores (whole numbers from 1 to 100), each on its own line, and ends with -1. An invalid input (not a whole number, or outside 1 to 100) is reported with the line neplatne body (invalid score) and not counted.
At the end it prints three lines: max: …, min: … and priemer: … (the class average to 2 decimal places). If no valid score was entered, it prints ziadne body (no scores).
What the program should do
For 80, 95 and 40: max: 95, min: 40, priemer: 71.67.
Examples
Input
80 95 40 -1
Expected output
max: 95 min: 40 priemer: 71.67
After you submit, 4 hidden tests will also check your solution: the bounds 1 and 100, invalid inputs, no scores, a decimal score.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.