hi,
if you use : import math
you can type: diameter * math.pi
if you use from math import *
you can type: diameter * pi
Cheers,
pujo
On 9/24/05, Nathan Pinno <[EMAIL PROTECTED]> wrote:
Hi all,I need help with pi and the math module. I had import math at the top of a program, but when it came to diameter*pi, it said that pi was not defined.How do I use it correctly?Thanks,Nathan Pinno
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor