Complete the code to import the animation module from matplotlib.
from matplotlib import [1]
The animation module is needed to create animations in matplotlib.
Complete the code to define the init function that clears the line data for animation.
def init(): line.set_data([], [1]) return line,
The init function should clear the line data by setting empty lists for x and y data.
Fix the error in the init function to properly reset the line data for animation.
def init(): line.set_data([1], []) return line,
Both x and y data should be empty lists to clear the line for animation.
Fill both blanks to complete the init function that resets the line data for animation.
def init(): line.set_data([1], [2]) return line,
The init function must set both x and y data to empty lists to clear the line.
Fill all three blanks to complete the init function and return the line for animation.
def init(): line.set_data([1], [2]) return [3],
The init function clears the line data with empty lists and returns the line object as a tuple.