<qiyuangong>1342_Number_of_Steps_to_Reduce_a_Number_to_Zero_1.py
def numberOfSteps ( num: int) -> int:
    ans = 0
    
    while num:
        ans += (num & 1) + 1
        num >>= 1
    return ans - 1
def sample_funcname ( var_0 : int ) -> int :
    var_3 = 0
    while var_0 :
        var_3 += ( var_0 & 1 ) + 1
        var_0 >>= 1
    return var_3 - 1
