Skip to content

Commit 1492654

Browse files
fixed calculator.py
1 parent fa21267 commit 1492654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

calculator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def addition(x: int, y: int) -> int:
1818
Returns:
1919
int: The sum of `x` and `y`.
2020
"""
21-
return x * y
21+
return x + y
2222

2323
def multiplication(x: int, y: int) -> int:
2424
"""
@@ -33,7 +33,7 @@ def multiplication(x: int, y: int) -> int:
3333
Returns:
3434
int: The multiple of `x` and `y`.
3535
"""
36-
return x + y
36+
return x * y
3737

3838
def division(x: int, y: int) -> int:
3939
"""
@@ -48,4 +48,4 @@ def division(x: int, y: int) -> int:
4848
Returns:
4949
int: `x` divided by `y`.
5050
"""
51-
return x // y
51+
return x / y

0 commit comments

Comments
 (0)