write a function that take a positive integer and return the ones position digit of the integer
Answers
Answered by
1
ones_digit = lambda n: n % 10
print("ones_digit:", ones_digit((n := int(input(("enter num: "))))))
Similar questions