class Solution(object):
    def countBits(self, num):
        s = []
        for i in range(num+1):
        	(s.append((bin(i)[2:]).count('1')))
        return (s)

c32bca9c599fc62f8bb896548bfc100e4778a94f
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def countBits(self, num):
        s = []
        for i in range(num + 1):
            s.append(bin(i)[2:].count('1'))
        return s

class Solution(object):
    def countBits(self, num):
        s = []
        for i in range(num+1):
        	(s.append((bin(i)[2:]).count('1')))
        return (s)
