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