Created
March 15, 2017 13:01
-
-
Save romuloceccon/935741396c907ee3faa0bf830433468d to your computer and use it in GitHub Desktop.
182 printable unicode code points to be used in a base-32768 encoder
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 is_printable(x): | |
| return \ | |
| x >= 0x25 and x <= 0x2a or \ | |
| x >= 0x2c and x <= 0x3c or \ | |
| x >= 0x3e and x <= 0x7e or \ | |
| x >= 0xa1 and x <= 0xac or \ | |
| x >= 0xae and x <= 0xff | |
| s = [chr(x) for x in range(256) if is_printable(x)] | |
| print(''.join(s)) | |
| print(len(s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment