chore: reset calculator to a clean baseline
This commit is contained in:
@@ -6,15 +6,3 @@ def add(left: int, right: int) -> int:
|
||||
|
||||
def subtract(left: int, right: int) -> int:
|
||||
return left - right
|
||||
|
||||
|
||||
def modulo(left: int, right: int) -> int:
|
||||
if right == 0:
|
||||
raise ValueError('modulo by zero')
|
||||
return left % right
|
||||
|
||||
|
||||
def gcd(left: int, right: int) -> int:
|
||||
while right:
|
||||
left, right = right, left % right
|
||||
return abs(left)
|
||||
|
||||
Reference in New Issue
Block a user