Re: [Tutor] Python root.

2010-04-18 Thread Alan Gauld
"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

Re: [Tutor] Python root.

2010-04-18 Thread Dave Angel
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

Re: [Tutor] Python root.

2010-04-18 Thread Wayne Werner
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.

[Tutor] Python root.

2010-04-18 Thread Aidas
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