input: def exponential_series(x: float, n: int) -> float:
      """
      Calculate the sum of the first n terms in the exponential series for a given value x.
  
      >>> exponential_series(2, 3)
      15.0
      >>> exponential_series(1, 5)
      6.0
      >>> exponential_series(0, 10)
      1.0
      """
      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