You are viewing a single comment's thread. Return to all comments →
a shorter one :)
n = int(input()) n2 = bin(n)[2:] n3 = {} n3 = n2.split("0") n4 = max(n3, key=len).count("1") print(n4)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
a shorter one :)