Created
November 14, 2012 06:59
-
-
Save xen/4070741 to your computer and use it in GitHub Desktop.
String module
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
| >>> import string | |
| >>> | |
| >>> leet = string.maketrans('abegiloprstz', '463611092572') | |
| >>> | |
| >>> s = 'The quick brown fox jumped over the lazy dog.' | |
| >>> | |
| >>> print s | |
| The quick brown fox jumped over the lazy dog. | |
| >>> print s.translate(leet) | |
| Th3 qu1ck 620wn f0x jum93d 0v32 7h3 142y d06. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment