Created
November 4, 2015 11:37
-
-
Save popey456963/38cf59cecacc294102c1 to your computer and use it in GitHub Desktop.
Data UnCompression
This file contains hidden or 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
| p,a,c="n",[],"" | |
| for i in "2ab4g9cat": | |
| if i in "0123456789": | |
| if p=="n":c+=i | |
| else:a.append(c);c,p=""+i,"n" | |
| else: | |
| if p=="a":c+=i | |
| else:a.append(c);c,p=""+i,"a" | |
| a.append(c) | |
| print(a) |
Author
popey456963
commented
Nov 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment