def draw_turtle(frame): # ... for frame in animate(100): draw_turtle(frame) draw_bubbles(frame)