[Tutor] Use of sqrt() from math module

زياد بن عبدالعزيز البات زياد بن عبدالعزيز البات
Sat Dec 1 16:07:40 CET 2007


Matt Smith wrote:
> 
> Apologies, the actual error I get when I run the code above is:
> 
> Traceback (most recent call last):
>    File "<stdin>", line 31, in <module>
> NameError: name 'sqrt' is not defined
> 
> The error I quoted first was when I tried to call 'math.sqrt(x)'
> 
> Matt
> 
Apologies myself...  I didn't read your whole message.

Frankly, I don't know what's the problem in your program.

Sorry.
Ziyad.


More information about the Tutor mailing list