Javatpoint Logo
Javatpoint Logo

Python ord() Function

The python ord() function returns an integer representing Unicode code point for the given Unicode character.

Signature

Parameters

character: A character string of length 1.

Return

It returns an integer that represents Unicode code point for the given Unicode character.

Python ord() Function Example 1

The below example shows the working of ord().

Output:

56
82
38

Explanation: In the above example, it returns an integer representing Unicode code point for the given Unicode character.






Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA