input: Write a python function to calculate the power of a number using iteration.
  assert power(5, 2) == 25
  assert power(3, 3) == 27
  assert power(2, 5) == 32
output: def power(base, exponent):
      result = 1
      for _ in range(exponent):
          result *= base
      return result