Skip to content

Commit

Permalink
Merge pull request #97 from vineet8588/Python-palindrome
Browse files Browse the repository at this point in the history
resolve issue #44
  • Loading branch information
sagar-kalra authored Oct 23, 2018
2 parents e0c0270 + 22b1132 commit 88e6fa2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions programs/Python/palindrome.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Program to check for palindrome
st=input("Enter any string -> ")
if(st==st[::-1]):
print("The entered string is a palindrome.")
else:
print("Not a palindrome.")

0 comments on commit 88e6fa2

Please sign in to comment.