From: samir amassine <[EMAIL PROTECTED]>

Subject: [Tutor] Sqrt on a variable

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

**********************************************************************************

I am guessing a bit as to your needs, but you may try this:

from math import sqrt

If by ABC formula you mean Pythagorean theorem try

c = sqrt(a**2 + b**2)

Ken
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to