[Tutor] Help with pi and the math module.
ajikoe at gmail.com
Sat Sep 24 10:48:23 CEST 2005
if you use : import math
you can type: diameter * math.pi
if you use from math import *
you can type: diameter * pi
On 9/24/05, Nathan Pinno <falcon3166 at hotmail.com> 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?
> Nathan Pinno
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor