Python math.pi Constant

Math Methods : Print the value of PI

Definition and Usage

The math.pi constant returns the value of PI: 3.141592653589793.

Note: Mathematically PI is represented by π.

Syntax

math.pi

Technical Details

Return Value: A float value, 3.141592653589793, representing the mathematical constant PI
Python Version: 1.4