From 098f90a58c845c30226ff6e805a5c60c25c3e55e Mon Sep 17 00:00:00 2001 From: AnaghaTiwari <76963992+AnaghaTiwari@users.noreply.github.com> Date: Mon, 19 Sep 2022 20:25:35 -0500 Subject: [PATCH] Update calculator.py --- calculator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/calculator.py b/calculator.py index a5c3aed..b307282 100644 --- a/calculator.py +++ b/calculator.py @@ -4,8 +4,6 @@ """ # Should this function even be here? -def poorly_implemented_function_with_no_close_parenthesis( - def addition(x: int, y: int) -> int: """ Adds two numbers. @@ -19,7 +17,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 +32,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 +47,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