Skip to content

Commit

Permalink
Merge pull request #1 from madhavcodes/madhavcodes-patch-1
Browse files Browse the repository at this point in the history
Create Palindrome.py
  • Loading branch information
madhavcodes authored Oct 31, 2022
2 parents 55dfeb3 + 89e41d0 commit de1e69f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Palindrome.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def checkPalindrome(text):
return text == text[::-1]

string = 'level'

if checkPalindrome(string):
print(string + ' is palindrome')
else:
print(string + ' is not palindrome')

0 comments on commit de1e69f

Please sign in to comment.