def count_set_bits(n):
    return 1 + count_set_bits(n & n - 1) if n else 0
Number of '1' bits in binary expansion of a nonnnegative integer.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_math.py/count_set_bits