|
@@ -1,5 +1,8 @@
|
|
|
+#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('The text you entered is a palindrome')
|
|
|
+ print(f'The text "{text}" is a palindrome')
|
|
|
elif text[::-1] != text:
|
|
|
- print('The text you entered is not a palindrome.')
|
|
|
+ print(f'The text "{text}" is not a palindrome.')
|