You are viewing a single comment's thread. Return to all comments →
the ordering of the if statements must be changed.
if i =='1': ones=ones+1 else: ones=0 if maxones<ones: maxones=ones print(maxones)
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 →
the ordering of the if statements must be changed.