input: Write a python function to calculate the sum of all numbers from 0 to n-1.
  assert sum_of_numbers(5) == 10
  assert sum_of_numbers(10) == 45
  assert sum_of_numbers(0) == 0
output: def sum_of_numbers(n):
      return sum(range(n))