From fa21267cbfcee7eb2411e1372288cf00846fd86c Mon Sep 17 00:00:00 2001 From: Devdatta Kasture Date: Fri, 7 Feb 2025 00:29:24 +0000 Subject: [PATCH 1/2] Fixed calculator.py --- calculator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calculator.py b/calculator.py index a5c3aed..2878401 100644 --- a/calculator.py +++ b/calculator.py @@ -4,7 +4,6 @@ """ # Should this function even be here? -def poorly_implemented_function_with_no_close_parenthesis( def addition(x: int, y: int) -> int: """ @@ -49,4 +48,4 @@ def division(x: int, y: int) -> int: Returns: int: `x` divided by `y`. """ - return x // y \ No newline at end of file + return x // y From 1492654e80c4989c260fb41c47d84c81c6eb5a97 Mon Sep 17 00:00:00 2001 From: Devdatta Kasture Date: Fri, 7 Feb 2025 00:33:15 +0000 Subject: [PATCH 2/2] fixed calculator.py --- calculator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calculator.py b/calculator.py index 2878401..003a49b 100644 --- a/calculator.py +++ b/calculator.py @@ -18,7 +18,7 @@ def addition(x: int, y: int) -> int: Returns: int: The sum of `x` and `y`. """ - return x * y + return x + y def multiplication(x: int, y: int) -> int: """ @@ -33,7 +33,7 @@ def multiplication(x: int, y: int) -> int: Returns: int: The multiple of `x` and `y`. """ - return x + y + return x * y def division(x: int, y: int) -> int: """ @@ -48,4 +48,4 @@ def division(x: int, y: int) -> int: Returns: int: `x` divided by `y`. """ - return x // y + return x / y