So I am trying to get a plot to show and I am able to produce the box for said graph with the x and y axis labeled as necessary, however the line/function in itself is not showing. Is there some sort of issue in my code that I am not noticing?
import numpy as np
import math
import matplotlib.pyplot as plt
def main():
X = []
Y = []
x = np.arange(-1.5,1.6, 0.101)
X.append(x)
for x in X:
y = x**3 - x
Y.append(y)
X = list(X)
Y = list(Y)
print(X)
print(Y)
plt.xlabel("x")
plt.ylabel("y")
plt.plot(X,Y)
plt.show()
main()