<p dir="ltr">On 7 Jun 2015 00:06, "Steve Burrus" <<a href="mailto:steveburrus28@gmail.com">steveburrus28@gmail.com</a>> wrote:<br>
><br>
> I need some help/assistance with using the python "import math" function. Like I am trying to do a = math.sqrt(1000)<br>
>                   a.sqrt<br>
> but it fails. what am I doing wrong? Thanx for anyone's help.<br>
><br>
><br>
> --<br>
> <a href="https://mail.python.org/mailman/listinfo/python-list">https://mail.python.org/mailman/listinfo/python-list</a></p>
<p dir="ltr">Here's what your code did:</p>
<p dir="ltr">import math  # make the math module accessible<br>
a = math.sqrt(1000)  # set `a` to the square root of 1000 (≈31.62...)<br>
a.sqrt  # get a reference to the sqrt method/attribute of a float, which does not exist; moreover you are not calling the method/discarding the value so it would be useless anyways</p>
<p dir="ltr">-- <br>
Chris Warrick <<a href="https://chriswarrick.com">https://chriswarrick.com</a>><br>
Sent from my Galaxy S3.</p>