You are viewing a single comment's thread. Return to all comments →
python 3
def base2(n):
mybin = bin(n)[2::] return max(map(len, mybin.split('0')))
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 →
python 3
def base2(n):