Home >>Python cmath Module >Python cmath.pi Constant
Python cmath.pi constant is used to return the value of pi (3.141592653589793). It is defined as the ratio of the circumference to the diameter of a circle.
Syntax:cmath.piHere is an example of Python cmath.pi constant:
import cmath
print (cmath.pi)