Skip to content

Commit f5ee99e

Browse files
committed
Update parameter name to 'number' in last_digit function
1 parent 73e9917 commit f5ee99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/last_digit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def last_digit(n: int) -> int:
1+
def last_digit(number: int) -> int:
22
"""
33
Return the last digit of a given integer.
44
@@ -9,4 +9,4 @@ def last_digit(n: int) -> int:
99
>>> last_digit(0)
1010
0
1111
"""
12-
return abs(n) % 10
12+
return abs(number) % 10

0 commit comments

Comments
 (0)