Created
November 8, 2011 19:26
-
-
Save martinusso/1348829 to your computer and use it in GitHub Desktop.
Convert ASCII to Char in Python
This file contains 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
''' | |
Convert ASCII to Char in Python | |
''' | |
chr(97) # return 'a' | |
ord('a') # return 97 | |
# ... | |
chr(122) # return 'z' | |
ord('z') # return 122 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! I know it´s trifling.