Skip to content

Commit f10a811

Browse files
committed
"hello world"
1 parent 803efd7 commit f10a811

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

calculator.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
# Should this function even be here?
7-
def poorly_implemented_function_with_no_close_parenthesis(
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)