input: from typing import List
  
  def exponential_series(x: float, n: int) -> float:
      """Calculate the sum of the exponential series for a given value of x and a number of terms n.
      The series is defined as the sum from i=0 to n of x^i.
      
      >>> 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