[Tutor] Sqrt is listed as always available.

Bob Gailer bgailer at alum.rpi.edu
Wed Feb 15 16:19:56 CET 2006


Kermit Rose wrote:
> Sqrt is listed as always available.
>   
Where did you see that?

Try:
 >>> import math
 >>> math.sqrt(24)
4.8989794855663558
> Why did I get these diagnostics?
>
>
>   
>>>> Sqrt(J0)
>>>>         
>
> Traceback (most recent call last):
>   File "<pyshell#1>", line 1, in -toplevel-
>     Sqrt(J0)
> NameError: name 'Sqrt' is not defined
>   
>>>> sqrt(J0)
>>>>         
>
> Traceback (most recent call last):
>   File "<pyshell#3>", line 1, in -toplevel-
>     sqrt(J0)
> NameError: name 'sqrt' is not defined
>   
>>>> SQRT(J0)
>>>>         
>
> Traceback (most recent call last):
>   File "<pyshell#4>", line 1, in -toplevel-
>     SQRT(J0)
> NameError: name 'SQRT' is not defined
>   
>>>>  
>>>>         
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>   



More information about the Tutor mailing list