Skip to content

Commit df90177

Browse files
committed
Fix??
1 parent 803efd7 commit df90177

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

calculator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
An extremely buggy Python math library . . .
44
"""
55

6-
# Should this function even be here?
7-
def poorly_implemented_function_with_no_close_parenthesis(
86

97
def addition(x: int, y: int) -> int:
108
"""
@@ -19,7 +17,7 @@ def addition(x: int, y: int) -> int:
1917
Returns:
2018
int: The sum of `x` and `y`.
2119
"""
22-
return x * y
20+
return x + y
2321

2422
def multiplication(x: int, y: int) -> int:
2523
"""
@@ -34,7 +32,7 @@ def multiplication(x: int, y: int) -> int:
3432
Returns:
3533
int: The multiple of `x` and `y`.
3634
"""
37-
return x + y
35+
return x * y
3836

3937
def division(x: int, y: int) -> int:
4038
"""
@@ -49,4 +47,4 @@ def division(x: int, y: int) -> int:
4947
Returns:
5048
int: `x` divided by `y`.
5149
"""
52-
return x // y
50+
return x / y

0 commit comments

Comments
 (0)