16 marks
The code below should print the average of the scores but contains errors.
def average(values): total = 0 for i in range(1, len(values)): total = total + values[i] return total / len(values) scores = [12, 15, 9, 20]print("Average is " + average(scores))Identify and correct three errors.