take away the last digit python int code example
Example: python how to take the last digit of a number
# Python Program to find the Last Digit in a Number
number = int(input("Please Enter any Number: "))
last_digit = number % 10
print("The Last Digit in a Given Number %d = %d" %(number, last_digit))