"ord" module to get ascii values of a character Home › Forums › Python Programming › "ord" module to get ascii values of a character This topic has 0 replies, 1 voice, and was last updated 12 years, 2 months ago by Humble. Viewing 1 post (of 1 total) Author Posts January 8, 2014 at 5:09 pm #2055 Reply HumbleKeymaster ord(...) ord(c) -> integer Return the integer ordinal of a one-character string. Its clear from topic title and above snip that, ord function can be used to return ascii value of a character. For ex: >>> ord('0') 48 >>> ord('A') 65 >>> ord(' ') 32 >>> >>> ord('\n') 10 >>> >>> ord('a') 97 >>> ord('9') 57 >>> Author Posts Viewing 1 post (of 1 total) Reply To: "ord" module to get ascii values of a character Your information: Name (required): Mail (will not be published) (required): Website: Set as private reply Submit