math.pi() python code example
Example 1: pi in python math
>>>import math
>>> math.pi
3.141592653589793
Example 2: pi python
# import built in math module
import math
# Showing usage of pi function
print(math.pi)
>>>import math
>>> math.pi
3.141592653589793
# import built in math module
import math
# Showing usage of pi function
print(math.pi)