Skip to content

Commit 2b9febf

Browse files
Create palindrome_check.py
1 parent 03a4251 commit 2b9febf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

strings/palindrome_check.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
string=input(("Enter a letter:"))
2+
if(string==string[::-1]):
3+
print("The letter is a palindrome")
4+
else:
5+
print("The letter is not a palindrome")

0 commit comments

Comments
 (0)