Login
Remember
Register
Ask a Question
What Does The Ord() Function Do In Python?
0
votes
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
What Does The Ord() Function Do In Python?
#python-ord
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 14, 2019
by
SakshiSharma
The ord(char) in Python takes a string of size one and returns an integer denoting the Unicode code format of the character in case of a Unicode type object, or the value of the byte if the argument is of 8-bit string type.
>>> ord("z")
122
...