input: Write a python function to calculate the probability of an event from a list of probability data.
  assert calculate_probability([0.4, 0.6, 0.2, 0.9], 0.4) == 0.4
  assert calculate_probability([0.4, 0.6, 0.2, 0.9], 0.2) == 0.2
  assert calculate_probability([0.4, 0.6, 0.2, 0.9], 0.1) == 0
output: def calculate_probability(probability_list, event_probability):
      if event_probability in probability_list:
          return event_probability
      else:
          return 0