anonymous
  • anonymous
hey, so i'm at the python Shell i did "import math" and now i'm trying to do the exercise but it says "Traceback (most recent call last): File "", line 1, in 34*x^2+68*x-510 NameError: name 'x' is not defined" what am i doing wrong? Thanks, take care.
MIT 6.00 Intro Computer Science (OCW)
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

amistre64
  • amistre64
i would say you are not properly defining "x"
amistre64
  • amistre64
can you post your code?
anonymous
  • anonymous
i just wrote 34*x^2+68*x-510 directly i did the import math before and after that i just did 34*x^2+68*x-510 how can i define x? i'm really new at this

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
oh i did it, it was so simple, thanks anwyay for your time :)
rsmith6559
  • rsmith6559
Python doesn't use the carat ( "^" ) character for exponents. Python uses "**" so your answer isn't correct. >>> x = 2 >>> x ^ 4 6 >>> x ** 4 16

Looking for something else?

Not the answer you are looking for? Search for more explanations.