Last active
October 27, 2015 21:52
-
-
Save Grumblesaur/984f763058fe81d39d9c to your computer and use it in GitHub Desktop.
Invert a string of binary characters (ASCII 1s and 0s).
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
lambda s:''.join(['10'[c>'0']for c in s]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment