Thanks to visit codestin.com Credit goes to github.com
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 8449b86 commit 6cbbb12Copy full SHA for 6cbbb12
Functions/palindrome.py
@@ -0,0 +1,9 @@
1
+def is_palindrome(string):
2
+ length = len(string)
3
+ for i in range(length // 2):
4
+ if string[i] != string[length - i - 1]:
5
+ return "Not Palindrome"
6
+ return "Palindrome"
7
+
8
+string = input()
9
+print(is_palindrome(string))
0 commit comments