def palindrome(x): if ReverseString.reverseString2(x)==x: return True else: return False
def palindrome2(x): return ReverseString.reverseString2(x)==x #Now if you just added a check to see if it's a valid word, it's good to go (would need a word list for that).