input: Write a function to calculate the probability of getting heads when flipping a coin n times.
  assert probability_of_heads(1) == 0.5
  assert probability_of_heads(2) == 0.5
  assert probability_of_heads(3) == 0.5
output: def probability_of_heads(n):
      return 0.5