With the help of the math module, we can also define mathematical constants like pi, e, and so on.

math

pi

e

We can calculate the area of a circle using pi as shown here: