Skip to content

Commit e602564

Browse files
authored
Merge pull request #1 from Ezimakyu/test
Debug operations in calculator.py
2 parents 803efd7 + 4df11c1 commit e602564

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

calculator.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
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(
6+
87

98
def addition(x: int, y: int) -> int:
109
"""
@@ -19,7 +18,7 @@ def addition(x: int, y: int) -> int:
1918
Returns:
2019
int: The sum of `x` and `y`.
2120
"""
22-
return x * y
21+
return x + y
2322

2423
def multiplication(x: int, y: int) -> int:
2524
"""
@@ -34,7 +33,7 @@ def multiplication(x: int, y: int) -> int:
3433
Returns:
3534
int: The multiple of `x` and `y`.
3635
"""
37-
return x + y
36+
return x * y
3837

3938
def division(x: int, y: int) -> int:
4039
"""
@@ -49,4 +48,4 @@ def division(x: int, y: int) -> int:
4948
Returns:
5049
int: `x` divided by `y`.
5150
"""
52-
return x // y
51+
return x // y

0 commit comments

Comments
 (0)