65 Does anyone know what ord stands for? Is it ordinal or something " /> 65 Does anyone know what ord stands for? Is it ordinal or something " /> 65 Does anyone know what ord stands for? Is it ordinal or something "/>

What is the meaning of ord in ord() function in Python?

203 views Asked by At

ord() is used to get the ASCII value of the character we insert.

Like ord("A") => 65

Does anyone know what ord stands for?

Is it ordinal or something else?

2

There are 2 answers

0
Dominique On

It stands for ASCII code, which is a code for the most general characters, like letters, digits, point, comma, ...

More information can be found on Wikipedia.

0
krock On

From the python docs for ord()

Given a string representing one Unicode character, return an integer representing the Unicode code point of that character... This is the inverse of chr().

So ord() will return the integer that represents a single character that is passed to it.