Ad
Code
Diff
  • def power(num, p):
        return num ** p
    • def power(num, p):
    • answer = 1
    • for i in range(p):
    • answer = answer * num
    • return answer
    • return num ** p