Import the pi functionality from the math module.
pi
math
Make sure to type from math import pi.
from math import pi