ExampleEdit & Run
#import the cmath module
import cmath

#print the value of PI
print(cmath.pi)
Output:
3.141592653589793[Finished in 0.010595235973596573s]

Among the attributes defined in the builtin cmath module is the pi attribute. The attribute holds the value of the mathematical constant Pi(π) ) up to the 15th decimal place.

Syntax:
cmath.pi
ExampleEdit & Run
import cmath

radius = 7
area = cmath.pi * radius * radius
print(area)
Output:
153.93804002589985[Finished in 0.010040319990366697s]