Q. Write a function that takes a positive integer and returns the one's position digit of the integer.
Answer :-
def number (x): one = x % 10 return one
Output :-
>>> number (12345)
5
>>>
Answer :-
def number (x): one = x % 10 return one
Output :-
>>> number (12345)
5
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )