Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python unichr() Function

Python unichr() Function

Python built-in function Python built-in 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

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 Python built-in function