Reputation: 1
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?
Upvotes: -1
Views: 503
Reputation: 29629
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.
Upvotes: 0