Ad
Code
Diff
  • def power(num, p):
        
        return pow(num, p)
    • def power(num, p):
    • res = 1
    • while p:
    • res *= num
    • p -=1
    • return res
    • return pow(num, p)