A brief question.
Tom Anderson
twic at urchin.earth.li
Sat Jul 2 20:04:55 EDT 2005
On Sat, 2 Jul 2005, Tom Brown wrote:
> On Saturday 02 July 2005 10:55, Nathan Pinno wrote:
>
>> Brief question for anyone who knows the answer, because I don't. Is
>> there anyway to make Python calculate square roots?
>
> from math import sqrt
That's one way. I'd do:
root = value ** 0.5
Does that mean we can expect Guido to drop math.sqrt in py3k? :)
tom
--
That's no moon!
More information about the Python-list
mailing list