def calculate_exponent(num, exp):
  """
  num: int or float
  exp: int
  various methods to find num^exp, contrary to the standard method num**exp
  """
#By iterative loops
  final = 1
  for i in range(1, exp + 1):
    final = final * num
  return final