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 73e9917 commit f5ee99eCopy full SHA for f5ee99e
1 file changed
maths/last_digit.py
@@ -1,4 +1,4 @@
1
-def last_digit(n: int) -> int:
+def last_digit(number: int) -> int:
2
"""
3
Return the last digit of a given integer.
4
@@ -9,4 +9,4 @@ def last_digit(n: int) -> int:
9
>>> last_digit(0)
10
0
11
12
- return abs(n) % 10
+ return abs(number) % 10
0 commit comments