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

Asun Friere afriere at yahoo.co.uk
Mon Nov 19 05:51:41 CET 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