Closed Dhroov7 closed 4 years ago
def isPalindrome(str):
# Run loop from 0 to len/2
for i in xrange(0, len(str)/2):
if str[i] != str[len(str)-i-1]:
return False
return True
s = "malayalam" ans = isPalindrome(s)
if (ans): print("Yes") else: print("No")
Don't add the code here.
fix for #104, palindrome #112
Done in #329