diff --git a/calculator.py b/calculator.py index a5c3aed..52bbf19 100644 --- a/calculator.py +++ b/calculator.py @@ -4,7 +4,6 @@ """ # Should this function even be here? -def poorly_implemented_function_with_no_close_parenthesis( def addition(x: int, y: int) -> int: """ @@ -19,7 +18,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,9 +33,9 @@ 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: +def division(x: int, y: int) -> float: """ Multiplies two numbers. @@ -49,4 +48,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