<qiyuangong>125_Valid_Palindrome_1.py
def isPalindrome( s):
    alnum_s = [t.lower() for t in s if t.isalnum()]
    ls = len(alnum_s)
    if ls <= 1:
        return True
    mid = ls / 2
    for i in range(mid):
        if alnum_s[i] != alnum_s[ls - 1 - i]:
            return False
    return True
def sample_funcname ( var_0 ) :
    var_4 = [ var_1.lower ( ) for var_1 in var_0 if var_1.isalnum ( ) ]
    var_6 = len ( var_4 )
    if var_6 <= 1 :
        return True
    var_10 = var_6 / 2
    for var_12 in range ( var_10 ) :
        if var_4 [ var_12 ] != var_4 [ var_6 - 1 - var_12 ] :
            return False
    return True
