On 10/9/07, samir amassine <[EMAIL PROTECTED]> wrote: > > hello, > i can't seem to use the sqrt function on a variable, do you know how i > can??? > i want to make the ABC formula > > Samir >
Hi Samir, 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 Ian.
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
