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 f10a811Copy full SHA for f10a811
calculator.py
@@ -4,7 +4,6 @@
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 +18,7 @@ def addition(x: int, y: int) -> int:
19
18
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 +33,7 @@ def multiplication(x: int, y: int) -> int:
34
33
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 +48,4 @@ def division(x: int, y: int) -> int:
49
48
50
int: `x` divided by `y`.
51
52
- return x // y
+ return x / y
0 commit comments