<qiyuangong>202_Happy_Number_1.py
def isHappy( n):
    seen_numbers = set()
    while n > 1 and n not in seen_numbers:
        seen_numbers.add(n)
        n = sum(map(lambda x: int(x) * int(x), list(str(n))))
    return n == 1
def sample_funcname ( var_0 ) :
    var_2 = set ( )
    while var_0 > 1 and var_0 not in var_2 :
        var_2.add ( var_0 )
        var_0 = sum ( map ( lambda var_10 : int ( var_10 ) * int ( var_10 ) , list ( str ( var_0 ) ) ) )
    return var_0 == 1
