Program to check the given number is palindrome or not.

def is_palindrome(n):
    return str(n) == str(n)[::-1]
num = int(input("Enter a number: "))
print(f"{num} is {'a Palindrome' if is_palindrome(num) else 'NOT a Palindrome'} number.")