#Alternative program at https://github.com/PythonCoder8/python-sandbox/blob/main/palindrome-alternative.py text = input('Enter any text or number: ') if text[::-1] == text: print(f'The text "{text}" is a palindrome') elif text[::-1] != text: print(f'The text "{text}" is not a palindrome.')