Skip to content

Commit fe98bcc

Browse files
authored
Update calculator.py
1 parent 803efd7 commit fe98bcc

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
@@ -19,7 +19,7 @@ def addition(x: int, y: int) -> int:
1919
Returns:
2020
int: The sum of `x` and `y`.
2121
"""
22-
return x * y
22+
return x + y
2323

2424
def multiplication(x: int, y: int) -> int:
2525
"""
@@ -34,7 +34,7 @@ def multiplication(x: int, y: int) -> int:
3434
Returns:
3535
int: The multiple of `x` and `y`.
3636
"""
37-
return x + y
37+
return x * y
3838

3939
def division(x: int, y: int) -> int:
4040
"""
@@ -49,4 +49,4 @@ def division(x: int, y: int) -> int:
4949
Returns:
5050
int: `x` divided by `y`.
5151
"""
52-
return x // y
52+
return x / y

0 commit comments

Comments
 (0)