Skip to content

Commit 44ad660

Browse files
authored
Merge pull request MukulCode#339 from rajpatil1743/Palindrome-python
Palindrome-python
2 parents 2fbd4f5 + c2cadf9 commit 44ad660

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ Saurav Pandey(Delhi)
103103

104104
Kiran Patil (Maharashtra)
105105

106+
107+
Raj patil (Maharashtra)
108+
106109
Adnan Sameer ( KOLKATA ).
107110

111+
108112
Suraj Keshari ( VARANASI ).
109113

110114
Shubham Kumar (Chattisgarh).

palindromString.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# function which return reverse of a string
3+
def isPalindrome(s):
4+
return s == s[::-1]
5+
6+
7+
# Driver code
8+
s = "malayalam"
9+
ans = isPalindrome(s)
10+
11+
#it will check condition and print yes or no
12+
if ans:
13+
print("Yes")
14+
else:
15+
print("No")

0 commit comments

Comments
 (0)