Created
May 9, 2014 09:35
-
-
Save Lysander/b48478d6cf539ac285a3 to your computer and use it in GitHub Desktop.
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
| 'D1353 M17731LUNG D13N7 4L5 B3W315, ...' |
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
| def transform_to_brain_test_style(text): | |
| replacements = {'I': '1', 'E': '3', 'A': '4', 'S': '5', 'T': '7'} | |
| for char in text.upper(): | |
| yield replacements.get(char, char) | |
| "".join(transform_to_brain_test_style("Diese Mitteilung dient als Beweis, ...")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment