feat: add modulo and ignore build artifacts

This commit is contained in:
typosaurus 2026-07-25 18:49:12 +02:00
parent d5861fb2e3
commit cb4c5516ad
3 changed files with 5 additions and 7 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
__pycache__/
*.pyc

View File

@ -8,11 +8,7 @@ def subtract(left: int, right: int) -> int:
return left - right
def multiply(left: int, right: int) -> int:
return left * right
def divide(left: int, right: int) -> int:
def modulo(left: int, right: int) -> int:
if right == 0:
raise ValueError('division by zero')
return left // right
raise ValueError('modulo by zero')
return left % right