Python unichr() Function
Description
The unichr() function is basically the same as chr(), except that it returns a Unicode character.
Note: Python 3 does not support unichr(); use instead chr() function in Vue 3.
Syntax
The following is the syntax of the unichr() method:
unichr(i)
Parameters
- i -- a number in either decimal or hexadecimal form.
Return Value
Returns a Unicode character.
Example
The following examples demonstrate the use of the unichr() method:
unichr
(
97
)
u
'
a
'
unichr
(
98
)
u
'
b
'
unichr
(
99
)
u
'
c
'
Python built-in function