input: Write a python function to calculate the sum of all numbers from 0 to a given number.
  assert sum_to(5) == 15
  assert sum_to(10) == 55
  assert sum_to(0) == 0
  assert sum_to(1) == 1
output: def sum_to(n):
      return sum(range(n + 1))