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