Matplotlib - Animations
Identify the error in this animation update function:
def update(frame):
x = range(frame)
y = [i*2 for i in x]
line.set_data(x)
return line,