The teacher keeps the class's scores in a list. Write average(scores) to return the average, rounded to one decimal place with round. If the list is empty (nobody has handed in yet), return 0.
average([90, 80, 70])→80.0average([88, 92])→90.0average([])→0def average(scores):
if len(scores) == 0:
return 0
# your code here: the total over how many, to 1 decimal place
Run tries the examples. When they look right, Submit.