Skip to content

Commit 2de392c

Browse files
author
wy12345
committed
Fixed the mod function implementation
1 parent 853a097 commit 2de392c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

calc/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ def mul(a, b):
1414
return b
1515

1616
def mod(a, b):
17-
res = a % b
18-
return -1
17+
"""Return the mod of 2 integers"""
18+
19+
return a % b
1920

2021
def pow(a, b):
2122
return a*b

0 commit comments

Comments
 (0)