input: Write a python function to approximate the value of Pi using the Monte Carlo method.
  assert round(MonteCarlo(100000), 2) == 3.14
  assert round(MonteCarlo(1000000), 2) == 3.14
  assert round(MonteCarlo(10000000), 2) == 3.14
output: import random
  
  def MonteCarlo(num_samples):
      inside_circle = 0
  
      for _ in range(num_samples):
          x = random.uniform(-1, 1)
          y = random.uniform(-1, 1)
          if x**2 + y**2 <= 1:
              inside_circle += 1
  
      return (inside_circle / num_samples) * 4