I\'ve written a simple program in python which checks if the sentence is palindrome. But I can\'t figure out why isn\'t it working. The results is always False. Does anyone know
You aren't returning the result of the function.
replace :
if word[0] == word[-1]: isPalindrome(word[1:-1])
with
if word[0] == word[-1]: return isPalindrome(word[1:-1])