I started to use matplotlib library to get a graph. But when I use \"plot(x,y)\" it returns me that \"plot is not defined\".
To import , I used the following command:>
Change that import to
from matplotlib.pyplot import *
Note that this style of imports (from X import *) is generally discouraged. I would recommend using the following instead:
from X import *
import matplotlib.pyplot as plt plt.plot([1,2,3,4])