feat: Add a power function to the calculator #5
BIN
src/__pycache__/calculator.cpython-315.pyc
Normal file
BIN
src/__pycache__/calculator.cpython-315.pyc
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user