import numpy as np
import matplotlib.pyplot as plt
plt.title(“sine curve and cosine curve”)
plt.xlabel(“values of x”)
plt.ylabel(“values of sin(X)and cos(x) “)
plt.grid()
plt.show()
x = np.arange(-10, 10, 0.001)
y1 = np.sin(x)
y2=np.cos(x)
plt.plot(x,y1,x,y2)