diff --git a/calculator.py b/calculator.py index a5c3aed..01c8624 100644 --- a/calculator.py +++ b/calculator.py @@ -4,49 +4,49 @@ """ # 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: """ Adds two numbers. - Note: `*` is the multiplication operator in Python. + Note: `+` is the addition operator in Python. Args: x (int): The first parameter. - y (str): The second parameter. + y (int): The second parameter. Returns: int: The sum of `x` and `y`. """ - return x * y + return x + y def multiplication(x: int, y: int) -> int: """ Multiplies two numbers. - Note: `+` is the addition operator in Python. + Note: `*` is the multiplication operator in Python. Args: x (int): The first parameter. - y (str): The second parameter. + y (int): The second parameter. Returns: int: The multiple of `x` and `y`. """ - return x + y + return x * y def division(x: int, y: int) -> int: """ - Multiplies two numbers. + Divides two numbers. - Note: `//` is the *integer* division operator in Python. + Note: `/` is the *integer* division operator in Python. Args: x (int): The first parameter. - y (str): The second parameter. + y (int): The second parameter. Returns: int: `x` divided by `y`. """ - return x // y \ No newline at end of file + return x / y \ No newline at end of file