Пример #1
0
def palindrome(x):
    if ReverseString.reverseString2(x)==x:
        return True
    else:
        return False
Пример #2
0
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).