<qiyuangong>231_Power_of_Two_1.py
def isPowerOfTwo( n):
    if n < 0:
        return False
    bin_str = bin(n)
    return sum(map(lambda x: int(x), list(bin_str[2:]))) == 1
def sample_funcname ( var_0 ) :
    if var_0 < 0 :
        return False
    var_4 = bin ( var_0 )
    return sum ( map ( lambda var_7 : int ( var_7 ) , list ( var_4 [ 2 : ] ) ) ) == 1
