Palindrome Number
Programs with input · Intermediate · about 7 min
A palindrome reads the same forwards and backwards. Read a whole number (0 or more) and print 12321 is a palindrome or 123 is not a palindrome.
The prompts inside input() are not checked, only what you print.
Examples
You type:
12321The program prints:
12321 is a palindrome
You type:
123The program prints:
123 is not a palindrome
n = int(input("Number: "))
# Print whether n is a palindrome
The solution opens after your first Check.