A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
does anyone know the sqrt(16) how it is written in python 3 as it doesn't work. Thanks
anonymous
 5 years ago
does anyone know the sqrt(16) how it is written in python 3 as it doesn't work. Thanks

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0you first have to import the math directory to first it has to be'import math' then you can type math.sqrt(16)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0how can i import it ?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i did it thanks a lot.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ya sorry meant to type 'import.math'

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0import math x=16 print (math.sqrt(x))

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0it'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/importconfusion.htm

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Thanks a ot. That was really helpful

carlsmith
 5 years ago
Best ResponseYou've already chosen the best response.0If 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 >>>
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.