What is used to create Unicode string in Python?

What is used to create Unicode string in Python?

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.
When to use list vs. tuple vs. dictionary vs. set?
List is like array, it can be used to store homogeneous as well as heterogeneous data type (It can store same data type as well as different data type). .....
Disadvantages of python
Disadvantages of Python are: Python isn't the best for memory intensive tasks........
30 Siebel Interview Questions and Answers - Freshers, Experienced
Siebel interview questions and answers for freshers and experienced - Here are all possible Siebel interview questions with answers that might be asked during interview.
Post your comment