anonymous
  • anonymous
does anyone know the sqrt(16) how it is written in python 3 as it doesn't work. Thanks
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
you first have to import the math directory to first it has to be'import math' then you can type math.sqrt(16)
anonymous
  • anonymous
how can i import it ?
anonymous
  • anonymous
i did it thanks a lot.

Looking for something else?

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

More answers

anonymous
  • anonymous
ya sorry meant to type 'import.math'
anonymous
  • anonymous
import math x=16 print (math.sqrt(x))
anonymous
  • anonymous
it's probably in the documentation - if you have the documentation file on your computer, go to the index tab and put sqrt in the keyword box maybe read this too: http://effbot.org/zone/import-confusion.htm
anonymous
  • anonymous
Thanks a ot. That was really helpful
anonymous
  • anonymous
lot
carlsmith
  • carlsmith
If you're using it a lot in a script, try from math import sqrt Then you can leave out the module name >>>a = sqrt(9) >>>print a 3 >>>

Looking for something else?

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