#import the cmath module
import cmath
#print the value of PI
print(cmath.pi)
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.
cmath.pi
import cmath
radius = 7
area = cmath.pi * radius * radius
print(area)