File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33An extremely buggy Python math library . . .
44"""
55
6- # Should this function even be here?
7- def poorly_implemented_function_with_no_close_parenthesis (
86
97def 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
2422def 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
3937def 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
You can’t perform that action at this time.
0 commit comments