python get pi number code example Example: python pi value #import pi function from math module from math import pi #Show pi value print(pi)