[Tutor] Sqrt on a variable
witham.ian at gmail.com
Wed Oct 10 02:30:59 CEST 2007
On 10/9/07, samir amassine <samirgimlilegolas at hotmail.com> wrote:
> i can't seem to use the sqrt function on a variable, do you know how i
> i want to make the ABC formula
You could import sqrt from the math module OR, you can do it without
importing anything by raising to the power of a half.
So, instead of using sqrt(x) you could use: x ** .5
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor