From fe98bcc24f5d8baf009edbd648f22ae86797673d Mon Sep 17 00:00:00 2001 From: Ethan Nguyen <143026494+nguyenethan@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:21:16 -0600 Subject: [PATCH 1/2] Update calculator.py --- calculator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calculator.py b/calculator.py index a5c3aed..a6da896 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: """ @@ -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 f8863d30e1717adb6c7576322679f99f7850b8a7 Mon Sep 17 00:00:00 2001 From: Ethan Nguyen <143026494+nguyenethan@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:25:18 -0600 Subject: [PATCH 2/2] Update calculator.py --- calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calculator.py b/calculator.py index a6da896..0d77f69 100644 --- a/calculator.py +++ b/calculator.py @@ -3,8 +3,8 @@ An extremely buggy Python math library . . . """ -# Should this function even be here? -def poorly_implemented_function_with_no_close_parenthesis( +# # Should this function even be here? +# def poorly_implemented_function_with_no_close_parenthesis( def addition(x: int, y: int) -> int: """