We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c45b98 commit a6a90edCopy full SHA for a6a90ed
Text/palindrome.py
@@ -0,0 +1,12 @@
1
+"""
2
+Check if Palindrome - Checks if the string entered
3
+by the user is a palindrome. That is that it reads
4
+the same forwards as backwards like "racecar"
5
6
+
7
+string = raw_input('Enter a string: ').lower()
8
9
+if string == string[::-1]:
10
+ print '%s is a palindrome' % string
11
+else:
12
+ print '%s is not a palindrome' % string
0 commit comments