Loading...
Loading...
Loading...
A teacher enters the marks of a class. The program should print the average mark rounded to 2 decimal places, such as 78.33. The starter holds a program with a bug. Find it and fix it.
Example
Input
3 70 80 85
Output
78.33
The sum is 235 and 235 / 3 is about 78.33.
Try the problem first. Open one hint at a time.
Divide the sum by n with the true division operator.
Format with :.2f so that 50 prints as 50.00.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor