import math python for whole module code example Example 1: how to import math in python import math Example 2: from math import python from math import *