Complete the code to import the matplotlib plotting library.
import [1] as plt
We import matplotlib.pyplot as plt to create plots.
Complete the code to create a scatter plot of x and y data.
plt.[1](x, y)
plt.show()plot which connects points with lines.bar or hist which are for different chart types.The scatter function creates a scatter plot, which is good for showing many points.
Fix the error in the code to plot a large dataset efficiently by reducing point size.
plt.scatter(x, y, s=[1])
plt.show()Setting s=1 makes points very small, improving performance and clarity with big data.
Fill both blanks to create a dictionary comprehension that filters words longer than 5 letters and stores their lengths.
{word: [1] for word in words if len(word) [2] 5}The dictionary stores each word's length if the word is longer than 5 letters.
Fill all three blanks to create a dictionary comprehension that stores uppercase words as keys, their counts as values, only if count is greater than 1.
{ [1]: [2] for word, count in word_counts.items() if count [3] 1 }This comprehension creates a dictionary with uppercase words as keys and their counts as values, filtering counts greater than 1.