From 9302b8559a7d09eee0687a77d0ab863cb6ed79e2 Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:25:57 -0600 Subject: [PATCH 1/4] Update calculator.py main --- 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 fadb2e09195c99b83a6dff632ed0f6fde86d406a Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:43:11 -0600 Subject: [PATCH 2/4] 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 c7d8df49a1e28b1893a0077840df3c59ec51f08b Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:44:24 -0600 Subject: [PATCH 3/4] Update calculator.py --- calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index e01de5d..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 85cfe23c388f7c09f7ddaee7cf2b86603c6960fa Mon Sep 17 00:00:00 2001 From: ShubhanC <30421913+ShubhanC@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:46:26 -0600 Subject: [PATCH 4/4] Update calculator.py --- 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