Functions and arguments

Report a typo

Your friend tracks how many books they've read. Here's the graph that shows the number of books from 2015 to 2020:

Recreate an area chart from incomplete code

When you've asked for the code, your friend's sent it to you in an e-mail, but your internet connection was poor and the functions and arguments are mixed up. However, you can use your knowledge of the area charts and make it work! Here's the only part of the code you got intact:

years = range(2015, 2021)
books = [15, 20, 22, 21, 24, 22]

Match the functions to their arguments.

Match the items from left and right columns
plt.fill_between()
plt.title()
plt.xlabel()
plt.ylabel()
plt.xticks()
plt.yticks()
"Years"
years
years, books
Range(0, 35, 5)
"Number of books"
"Books read per year"
___

Create a free account to access the full topic