From 1f891f32253a568a24e787471fdebf9d9b511c97 Mon Sep 17 00:00:00 2001 From: DatMango <113151033+DatMango@users.noreply.github.com> Date: Thu, 22 Sep 2022 19:27:13 -0500 Subject: [PATCH 1/2] Update calculator.py --- calculator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calculator.py b/calculator.py index a5c3aed..8a8b6da 100644 --- a/calculator.py +++ b/calculator.py @@ -4,7 +4,7 @@ """ # Should this function even be here? -def poorly_implemented_function_with_no_close_parenthesis( +#def poorly_implemented_function_with_no_close_parenthesis( def addition(x: int, y: int) -> int: """ @@ -19,7 +19,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: """ @@ -34,7 +34,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: """ @@ -49,4 +49,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 4eb3f80329445b21d96660008ea947ee02a0d8cf Mon Sep 17 00:00:00 2001 From: DatMango <113151033+DatMango@users.noreply.github.com> Date: Thu, 22 Sep 2022 19:29:12 -0500 Subject: [PATCH 2/2] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 8a8b6da..ade7260 100644 --- a/calculator.py +++ b/calculator.py @@ -49,4 +49,4 @@ def division(x: int, y: int) -> int: Returns: int: `x` divided by `y`. """ - return x // y + return x / y