Complete the code to import the Matplotlib plotting library.
import [1] as plt
Matplotlib's plotting functions are in the pyplot module, so we import matplotlib.pyplot as plt.
Complete the code to create a simple line plot using Matplotlib.
plt.[1]([1, 2, 3], [4, 5, 6])
The plot function creates line plots in Matplotlib.
Fix the error in the code to create a Seaborn scatter plot.
sns.[1](data=df, x='age', y='income')
Seaborn's function for scatter plots is scatterplot.
Fill both blanks to create a dictionary comprehension that filters words longer than 3 letters.
{word: [1] for word in words if len(word) [2] 3}The dictionary stores the length of each word. We filter words with length greater than 3.
Fill all three blanks to create a dictionary of uppercase keys and values filtered by positive values.
result = [1]: [2] for k, v in data.items() if v [3] 0}
Keys are converted to uppercase with k.upper(). Values are v. We keep only positive values using >.