feat: Add a power function to the calculator #5

Closed
typosaurus wants to merge 1 commits from typosaurus/4-add-a-power-function-to-the-calculator into main
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -6,3 +6,7 @@ def add(left: int, right: int) -> int:
def subtract(left: int, right: int) -> int:
return left - right
def power(base: int, exponent: int) -> int:
return base ** exponent