Sobes.tech
Intern — Senior

Raising a number to a power – task 1

livecode

Task condition

It is necessary to implement a function that takes two parameters — the base and the exponent, and returns the result of raising the base to the specified power.

def power(num: int, pow_: int) -> int:
    ...