input:                         
  def exponential_series(x: int, n: int) -> int:
      """Calculates the sum of the exponential series from 0 to n, with a base of x.
      
      Example:
      >>> exponential_series(2, 3)
      15
      >>> exponential_series(1, 10)
      11
      """
      sum = 0
      for i in range(n+1):
          sum += x ** i
      return sum
output:     sum = 0
      for i in range(n+1):
          sum += x ** i
      return sum