In Python, the value of pi is available in the math module, and it is represented by the constant math.pi.
The value of pi is an irrational number, which means it cannot be represented as a finite decimal or a fraction. The value of math.pi in Python is an approximation of pi, with a precision of approximately 15 decimal places.
Example code:
import math
pi = math.pi
print(pi)
Output:
3.141592653589793