Skip to content

Commit 8b09bb7

Browse files
authored
Update calculator.py
1 parent 4d64503 commit 8b09bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

calculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def multiplication(x: int, y: int) -> int:
3535
"""
3636
return x * y
3737

38-
def division(x: int, y: int) -> int:
38+
def division(x: int, y: int) -> float:
3939
"""
4040
Multiplies two numbers.
4141
@@ -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)