"Aidas" wrote
You had written how to ger root in python. The way is:
from math import sqrt
print sqrt( 49 )".
I noticed that if I write just "print sqrt(49)" I get nothing.
So why I need to write "from math import sqrt"
Others have explained that you need to import the name sqrt from
th
Aidas wrote:
Hello.
In here
http://mail.python.org/pipermail/tutor/2001-February/003385.html You
had written how to ger root in python. The way is: "from math import
sqrtprint sqrt( 49 )".
I noticed that if I write just "print sqrt(49)" I get nothing.
I don't get "nothing," I get an error
On Sun, Apr 18, 2010 at 10:21 AM, Aidas wrote:
> Hello.
> In here http://mail.python.org/pipermail/tutor/2001-February/003385.htmlYou
> had written how to ger root in python. The way is: "from math import
> sqrtprint sqrt( 49 )".
>
> I noticed that if I write just "print sqrt(49)" I get nothing.
Hello.
In here http://mail.python.org/pipermail/tutor/2001-February/003385.html
You had written how to ger root in python. The way is: "from math import
sqrtprint sqrt( 49 )".
I noticed that if I write just "print sqrt(49)" I get nothing. So why I need to write "from
math import sqrt" instead