not able to execute the command
Title
Question
I tried ececuting this command as it is
plot(x,-x*x+4*x-5,'r',linewidth=2)
the following is the error i am getting
<ipython-input-4-3899d2773deb> in <module>
----> 1 plot(x,-x*x+4*x-5,'r',linewidth=2)
TypeError: bad operand type for unary -: 'tuple'
Python Embellishing-a-plot 06-07 min 20-30 sec
Answers:
Please check the value of x and then try again.
Login to add comment