[Tutor] Sqrt is listed as always available.
Matthew Webber
m_webber_sydney at yahoo.com.au
Wed Feb 15 16:29:00 CET 2006
This works for me under Python 2.4 -
import math
math.sqrt(4)
When you state "Sqrt is listed as always available", where does it say that?
For future problem reports, let us know which Python release you are
running.
-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On Behalf
Of Kermit Rose
Sent: 15 February 2006 08:53
To: tutor at python.org
Subject: [Tutor] Sqrt is listed as always available.
Sqrt is listed as always available.
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
>>>
More information about the Tutor
mailing list