input: from typing import List, Tuple
  
  def calculate_exponential_series(x: float, n: int) -> float:
      """ Calculate the sum of the exponential series from index 0 to n for a given base x.
      The series is defined as sum of x raised to the power of i for i in range(n+1).
      >>> calculate_exponential_series(2, 2)
      7.0
      >>> calculate_exponential_series(1, 5)
      6.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