Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 77)
77.
How can you use the unicodedata module in Python to get the name of a Unicode character?
unicodedata.char_name(char)
unicodedata.get_char_name(char)
unicodedata.name(char)
unicodedata.get_name(char)
Answer: Option
Explanation:
import unicodedata

# Example usage of unicodedata module for getting the name of a Unicode character
char_name = unicodedata.name('A')
print(char_name)
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.