[Tutor] How do I make Python calculate square roots?
Reed L. O'Brien
reed at intersiege.com
Sat Jul 2 20:04:56 CEST 2005
Nathan Pinno wrote:
> Hi all,
>
> Does anyone know how to make Python calculate square roots?
>
> Thanks,
> Nathan Pinno
> http://www.npinnowebsite.ca/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Tutor maillist - Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
Raise to the 1/2 power.
>>> 4**.5
2.0
>>> 16**.5
4.0
>>> 81**.5
9.0
~r
More information about the Tutor
mailing list