From f4d7d3c6f6b862b12aa67d59cec7e85a177cdd89 Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:22:10 -0600 Subject: [PATCH 1/5] Update calculator.py --- calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calculator.py b/calculator.py index a5c3aed..401f090 100644 --- a/calculator.py +++ b/calculator.py @@ -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: """ @@ -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 f3f229a254c7cf1ac62d02822fe9e8c2bb5ab387 Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:28:35 -0600 Subject: [PATCH 2/5] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 401f090..e01de5d 100644 --- a/calculator.py +++ b/calculator.py @@ -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: """ From 019eb870c40dbb774b1e347eac544e66f025d3d7 Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:33:28 -0600 Subject: [PATCH 3/5] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index e01de5d..ace335c 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: """ From 6a028fa908921d1494d14e8ab36ac3c15f03bcde Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:33:50 -0600 Subject: [PATCH 4/5] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index ace335c..758dd7c 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 addition(x: int, y: int) -> int: """ From 3550f0d8aa496e52124c65c07d8a2764d69a763b Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:35:26 -0600 Subject: [PATCH 5/5] Update calculator.py Correct! --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 758dd7c..f129427 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