Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 25, 2015 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popey456963/28498c3618ea1ead8759 to your computer and use it in GitHub Desktop.
Save popey456963/28498c3618ea1ead8759 to your computer and use it in GitHub Desktop.
Counting Zeroes
t,c=0,0
for i in input():
if i=="0":c+=1
else:c=0
t=(c,t)[c<t]
print(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment