Write average(marks) that returns the average rounded to 2 decimals. Return 0 for an empty list.
average(marks)
0
average([70, 80, 90]) → 80
average([]) → 0
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.