Convert Character to Unicode in Python
We can easily convert a character to Unicode using the ord method in Python.
Conversion
We can use ord
method in Python to convert a character to Unicode.
By the way, use chr
method to convert Unicode to a character.