We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803efd7 commit c6a01b3Copy full SHA for c6a01b3
calculator.py
@@ -4,7 +4,7 @@
4
"""
5
6
# Should this function even be here?
7
-def poorly_implemented_function_with_no_close_parenthesis(
+
8
9
def addition(x: int, y: int) -> int:
10
@@ -19,7 +19,7 @@ def addition(x: int, y: int) -> int:
19
Returns:
20
int: The sum of `x` and `y`.
21
22
- return x * y
+ return x + y
23
24
def multiplication(x: int, y: int) -> int:
25
@@ -34,7 +34,7 @@ def multiplication(x: int, y: int) -> int:
34
35
int: The multiple of `x` and `y`.
36
37
- return x + y
+ return x * y
38
39
def division(x: int, y: int) -> int:
40
@@ -49,4 +49,4 @@ def division(x: int, y: int) -> int:
49
50
int: `x` divided by `y`.
51
52
- return x // y
+ return x // y
0 commit comments