Write a programExercise 1/4Basic10 XP
Sum and average of three numbers
Task
The program reads three whole numbers (each on its own line) and prints their sum and average. Always print the average with two decimal places - an f-string with the :.2f format helps.
For the numbers 4, 6 and 7 the program prints:
Súčet: 17
Priemer: 5.67
Examples
Input
4 6 7
Expected output
Súčet: 17 Priemer: 5.67
After you submit, 4 hidden tests will also check your solution: a whole average, all zeros, negative numbers, larger numbers.
You need to know
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.