Write average(nums) that returns the average of a non-empty list, rounded to 2 decimals, using a loop to add.
average([2, 4, 6]) → 4
average([1, 2]) → 1.5
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.