how to use math function library python code example Example 1: how to import math in python import math Example 2: from math import python from math import *