Complete the code to import the 3D plotting toolkit from matplotlib.
from mpl_toolkits.mplot3d import [1]
The Axes3D module is needed to create 3D plots in matplotlib.
Complete the code to create a 3D subplot in matplotlib.
fig = plt.figure() ax = fig.add_subplot(111, projection=[1])
The projection argument must be set to '3d' (all lowercase) to create a 3D plot.
Fix the error in the code to plot 3D scatter points.
ax.scatter([1], y, z)The scatter function requires x, y, and z coordinates. The missing variable is x.
Fill both blanks to create a dictionary comprehension that maps words to their lengths only if length is greater than 3.
{word: [1] for word in words if [2]The dictionary maps each word to its length using len(word). The condition filters words with length greater than 3 using len(word) > 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their counts only if count is greater than zero.
result = [1]: [2] for [3] in data.items() if [2] > 0}
The dictionary comprehension maps the uppercase key k.upper() to its value v for each key k in the data items, filtering values greater than zero.