A summary that throws away returned values

Code review · Basic · §12.1 Graduating from notebooks

You moved code from a notebook cell into summary.py and ran it in the terminal, but nothing is printed. There is no error. Fix it so that the total 136 and the average 34.0 are printed, one per line. Grading also runs the code with other lists in likes.

Code to fix

def total_of(values):
    return sum(values)

likes = [40, 25, 61, 10]
total_of(likes)
total_of(likes) / len(likes)

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.