Using "import math".

Cameron Simpson cs at zip.com.au
Sat Jun 6 18:14:08 EDT 2015


On 06Jun2015 15:03, Steve Burrus <steveburrus28 at gmail.com> wrote:
>I need some help/assistance with using the python "import math" function. Like I am trying to do a = math.sqrt(1000)
>                  a.sqrt
>but it fails. what am I doing wrong? Thanx for anyone's help.

Please post a tiny but complete example piece of code showing the problem so 
that others can run it. Please also post the error message; if it is a stack 
trace, include the full stack trace.

Thanks,
Cameron Simpson <cs at zip.com.au>

[The Press] had tried to contact usenet but that no one had been available
for comment.  That's odd, I thought, if there's one thing you can say about
usenet, its that there's usually someone available for comment.
        - Paul Taylor



More information about the Python-list mailing list