Re: [Tutor] Help with pi and the math module.

2005-09-26 Thread paul brian
it might be a little clearer if you look at sys.modules In the sys module is a useful dictionary called "modules" This dictionary maps all the names of modules we import, to the objects that are those modules. for example (I am only importing pprint to make it easier to read) >>> import sys, pp

Re: [Tutor] Help with pi and the math module.

2005-09-24 Thread Pujo Aji
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

Re: [Tutor] Help with pi and the math module.

2005-09-23 Thread Danny Yoo
On Fri, 23 Sep 2005, Nathan Pinno wrote: > 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. Hi Nathan, Python's module import will not automatically pull all the names in a module and dum