input: Write a python function to calculate Pi to n-digits of precision.
  assert pi_calculator(3) == '3.142'
  assert pi_calculator(5) == '3.14159'
  assert pi_calculator(7) == '3.1415927'
output: def pi_calculator(n):
      from math import pi
      return f'{pi:.{n}f}'