Created
March 7, 2017 23:34
-
-
Save rjshekar90/529796e70e472b69d0221553cb8a108a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import groupby | |
for k,g in groupby((raw_input()), int): | |
print (len(list(g)),k), | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment