Loading...
Loading...
Loading...
Given the marks of a class, print the average mark with 2 decimal places on the first line. On the second line print how many marks are strictly above the average.
Example
Input
4 70 80 90 60
Output
75.00 2
The average is 75.00 and two marks are above it.
Try the problem first. Open one hint at a time.
Divide the total by the number of marks. Keep the full value for the comparison and format only when printing.
Loop once more and count the marks bigger than the average.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor