A legend that tells two lines apart
Write code · Medium · §3.1 From one chart to many
Draw the monthly sign-ups for an app's free plan and paid plan as two lines on one Axes. Draw free first and pro next, label the lines Free and Pro, respectively, and then show a legend.
The title is Sign-ups by plan.

Starter code
import matplotlib.pyplot as plt
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
free = [320, 410, 380, 450, 520, 610]
pro = [40, 55, 62, 70, 95, 120]
# Write your code hereSolve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.