Explains the steps for beginners to easily draw and display sine and cosine wave graphs using Python's matplotlib.pyplot library with Google Colaboratory. You can try it immediately without any environment setup.
importmatplotlib.pyplotaspltimportnumpyasnpx=np.linspace(0,2*np.pi,500)plt.plot(x,np.sin(x),label="sin curve")plt.plot(x,np.cos(x),label="cos curve")plt.legend()# Show legendplt.show()