input: 
  def exponential_series(x: float, n: int) -> float:
      """
      Calculate the exponential series for a given value of x up to n terms.
      The exponential series is the sum of the powers of x from 0 to n.
      
      >>> exponential_series(2, 3)
      15
      
      >>> exponential_series(1, 5)
      6
      
      >>> exponential_series(0, 10)
      1
      """
      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