We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431caa7 commit 60d571fCopy full SHA for 60d571f
calculator.py
@@ -48,4 +48,6 @@ def division(x: int, y: int) -> int:
48
Returns:
49
int: `x` divided by `y`.
50
"""
51
+ if y == 0:
52
+ raise ValueError("You can not divide by 0"
53
return x // y
0 commit comments