Complete the code to import the matplotlib plotting library.
import [1] as plt
We import matplotlib.pyplot as plt to create plots easily.
Complete the code to create a simple line plot of y versus x.
plt.[1](x, y)
plt.show()scatter which draws points but no lines.hist which draws histograms.The plot function draws a line plot connecting points.
Fix the error in the code to label the x-axis correctly.
plt.xlabel([1])The label text must be a string, so it needs quotes.
Fill both blanks to create a dictionary comprehension that maps words to their lengths if length is greater than 3.
{word: [1] for word in words if [2]The dictionary maps each word to its length, but only if the length is greater than 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their counts if count is greater than 1.
{ [1]: [2] for [3], [2] in word_counts.items() if [2] > 1 }The comprehension maps each word in uppercase to its count, but only if the count is more than 1.