Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Binary Count by virzen
import re
def checkio(number):
pattern = re.compile('1')
results = pattern.findall(bin(number))
return len(results)
Nov. 19, 2016