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 cb01de4 commit c134283Copy full SHA for c134283
Palindrome_Checker.py
@@ -1,15 +1,12 @@
1
-
2
3
4
"""
5
6
A simple method is , to reverse the string and and compare with original string.
7
If both are same that's means string is palindrome otherwise else.
8
9
-phrase=input()
10
-if phrase==phrase[::-1]:#slicing technique
+phrase = input()
+if phrase == phrase[::-1]: # slicing technique
11
"""phrase[::-1] this code is for reverse a string very smartly """
12
+
13
print("\n Wow!, The phrase is a Palindrome!")
14
else:
15
print("\n Sorry, The given phrase is not a Palindrome.")
0 commit comments