bin() for the win solution in Clear category for Binary Count by Leonix
def checkio(number): return bin(number).count('1')
Aug. 5, 2015