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))
3.4
5
number%10
Thank you!
5
0
Are there any code examples left?
New code examples in category Python