What is used to create Unicode string in Python?
Answer / chaitanya
Unicode is a system to represent characters from all the world's different languages.
Two methods can be used to create unicode string:
unicode() method is unicode(string[, encoding, errors]), its arguments should be 8-bit strings. The first argument is converted to Unicode using the specified encoding, if encoding argument left, the ASCII encoding is used for the conversion.
encode() method is encode([encoding], [errors='strict']), which returns an 8-bit string version of the Unicode string.
| Is This Answer Correct ? | 0 Yes | 0 No |
In python, how you can randomize the items of a list in place ?
How would you generate a random number in python?
What is chmod 755 in python?
Does python have a built in function for string natural sort?
Is python object oriented?
How can you prevent abnormal termination of a python program?
Is python object-oriented? What is object-oriented programming?
Can python make websites?
Explain about python break, continue and pass?
What does super () mean in python?
Can you learn python with no experience?
How can we make forms in python?