feat: add modulo and ignore build artifacts
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
Binary file not shown.
+3
-7
@@ -8,11 +8,7 @@ def subtract(left: int, right: int) -> int:
|
|||||||
return left - right
|
return left - right
|
||||||
|
|
||||||
|
|
||||||
def multiply(left: int, right: int) -> int:
|
def modulo(left: int, right: int) -> int:
|
||||||
return left * right
|
|
||||||
|
|
||||||
|
|
||||||
def divide(left: int, right: int) -> int:
|
|
||||||
if right == 0:
|
if right == 0:
|
||||||
raise ValueError('division by zero')
|
raise ValueError('modulo by zero')
|
||||||
return left // right
|
return left % right
|
||||||
|
|||||||
Reference in New Issue
Block a user