input: Write a python function to calculate the average of first k natural numbers.
  assert average(5) == 3.0
  assert average(10) == 5.5
  assert average(1) == 1.0
output: def average(k):
      return sum(range(1, k+1)) / k