Learning Python : >>> import math doesn't work ?

Asun Friere afriere at yahoo.co.uk
Sun Nov 18 23:51:41 EST 2007


On Nov 19, 3:46 pm, windspy <wind... at gmail.com> wrote:
> use it like: x = math.sqrt (100) and math.sin(x)

alternatively import like this:

from math import sqrt, sin

... and use it like you have.




More information about the Python-list mailing list