Edit: this was a stupid mistake and probably won't help you find an answer to your problem... I was jung and just started learning to code I know that I can use num ** pow as an alternative but just to for the future I want to understand why the following code does not work: def math(num, pow): return pow(int(num), int(pow)) # the return keyword returns the result pass print(math(2, 4)) Continue reading...