Python math module
You can also import as
from math import *
Then you can use any mathematical function without prefixing math. e.g.
sqrt(4)
pow
is built into the language(not part of the math library). The problem is that you haven't imported math.
Try this:
import math
math.sqrt(4)