Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Binary Count by m.dziardziel
def checkio(number):
bin=""
licz=0
while number >0:
bin = bin + str(number%2)
if number%2==1:
licz=licz+1
number = int(number/2)
return licz
Nov. 14, 2016