input: Write a python function to calculate the average of a list of numbers.
  assert average([1, 2, 3]) == 2.0
  assert average([10, 20, 30, 40, 50]) == 30.0
  assert average([5, 15]) == 10.0
output: def average(numbers):
      return sum(numbers) / len(numbers)