예제 #1
0
파일: Palindrome.py 프로젝트: Szubie/Misc
def palindrome(x):
    if ReverseString.reverseString2(x)==x:
        return True
    else:
        return False
예제 #2
0
파일: Palindrome.py 프로젝트: Szubie/Misc
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).