Could it be shorter ? solution in Clear category for Binary Count by piotr.sawicki
def checkio(number): return str(bin(number)).count('1')
Nov. 23, 2017