Browse Source

Add files via upload

PythonCoder8 4 years ago
parent
commit
548188098a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      palindrome.py

+ 5 - 0
palindrome.py

@@ -0,0 +1,5 @@
+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.')