import matplotlib.pyplot as plt
x = []
y = []
print("Enter size: ")
size = int(input())
for i in range(0, size):
print("enter x[" + str(i+1) + "]:")
x.append(float(input()))
print("enter y[" + str(i+1) + "]:")
y.append(float(input()))
plt.plot(x,y)
plt.xlabel('x')
plt.ylabel('y')
plt.title('Graph')
plt.show()
import matplotlib.pyplot as plt
x = []
y = []
print("Enter size: ")
size = int(input())
for i in range(0, size):
print("enter x[" + str(i+1) + "]:")
x.append(float(input()))
print("enter y[" + str(i+1) + "]:")
y.append(float(input()))
plt.plot(x,y)
plt.xlabel('x')
plt.ylabel('y')
plt.title('Graph')
plt.show()