text = input('Enter any text or number: ') if text[::-1] == text: print('The text you entered is a palindrome') elif text[::-1] != text: print('The text you entered is not a palindrome.')