input: Write a python function to calculate the binomial probability of an event using the binomial distribution.
  assert binomial_probability(10, 0.5, 6) == 0.205078125
  assert binomial_probability(5, 0.7, 3) == 0.3087000000000001
  assert binomial_probability(7, 0.2, 2) == 0.2752512000000001
output: def binomial_probability(n, p, k):
      from math import comb
      return comb(n, k) * (p ** k) * ((1 - p) ** (n - k))