10/19


#1

what am I doing wrong

from module import math
thanks


#2

You import things(functions, objects etc) from libraries in python. They call them modules in python.

in your case you want to go into the math module(library) and import a function called sqrt like this

from math import sqrt

#3

ah yea I see, thanks for your help


#4

from math import *

This works


#5

yep it will work too.
That statement imports all libraries form the math module into the workspace.


#6

Import just the sqrt function from math on line 3!

from math import sqrt
sqrt(2)