Fix the Average
Python
15 pts
Fix the Average
Hana scored 72, 80 and 88 in three tests. The program below calculates her average, but the answer is wrong because of operator precedence.
Fix the line that creates average by adding parentheses. Expected output:
80.0
Checklist
- Keep the three marks and fix
averagewith parentheses so it is80.0. - Print
average.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
