input: from typing import List
  
  def exponential_series(x: float, n: int) -> float:
      """ This function calculates the sum of the first n terms of the exponential series
      for a given x.
  
      >>> exponential_series(2, 5)
      63.0
      >>> exponential_series(0, 10)
      1.0
      >>> exponential_series(1, 100)
      101.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