My code currently looks like this:
a = 3
b = 4
c = 0
d = 1
e = 7
f = 6
g = 5
y = (0,1,2,3,4,5,6)
x = (a,b,c,d,e,f,g)
bar(y, x, linewidth = 3)
show()
but I keep getting an error:
ValueError: setting an array element with a sequence.
any ideas what is going wrong?
My crystal ball hints that you’re trying to use
matplotlib. In that case, change yourxandyfromtuplesintolists: