input: from typing import List
  
  def exponential_series(x: float, n: int) -> float:
      """Calculate the exponential series of 'x' up to the n-th term.
      The series is defined as: sum(x^i) for i from 0 to n.
      >>> exponential_series(2, 3)
      15.0
      >>> exponential_series(1, 4)
      5.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