math` module in Python to access the value of pi. Here's a program that demonstrates how to do that :import math
pi_value = math.pi
print("The value of pi is:", pi_value)The value of pi is: 3.141592653589793math` module and then uses the `pi` constant from that module to assign the value of pi to the `pi_value` variable. print()` function.