Writing a code to plot a graph in python but keep getting an error.
This is my current code:
y = arange(1, 26, 1)
x = [4,1,8,6,18,2,1,7,11,0,0,1,2,9,12,2,0,5,8,13,1,2,5,0,2,0]
plot(y, x)
And the print out of what y is:
[ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25]
But i keep getting this error whenever i try and run it:
raise ValueError("x and y must have same first dimension")
ValueError: x and y must have same first dimension
What am i doing wrong :(