The lines a script shows

Predict the output · Basic · §12.1 Graduating from notebooks

You saved the code below as views.py and ran it in the terminal with python views.py. Predict what is printed in the terminal.

Code

views = [120, 45, 300]
total = sum(views)
total
print("Total:", total)
total / len(views)
print("Most views:", max(views))
max(views) - min(views)

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.