Python‎ > ‎Built-in‎ > ‎

ord()

http://www.adilwaseem.com/

Introduction
The function of ord() gives the Unicode code point of the character. Python only accept function in string of length 1, not set or list.

Syntax
ord(x)

Parameters
x=string

Examples
The equal to:
 >>> ord('a')
97
>>> ord('A')
65
>>> ord('b')
98
>>> ord('c')
99
>>> ord('d')
100
>>> ord('z')
122
>>>
Comments