Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to write a Unicode string in Python?

Answer Posted / nashiinformaticssolutions

In Python 3, strings are Unicode by default. You can write Unicode characters directly in a string or use escape sequences like `u` or `U` for Unicode code points.
Example:
```python
unicode_string = "Hello, !"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is docstring? How to define it?

947


What is pip and when it is used ?

888


What are uses of lambda?

939


Print the length of each line in the file ‘file.txt’ not including any whitespaces at the end of the lines?

863


How do you sort a list alphabetically in python with sort function?

775


Which server is used for python?

853


Is there a difference between `==` and `is` in python?

884


Is python list an array?

851


Why is python so powerful?

826


Can a class be static?

858


What is the best notepad?

800


What does split () do in python?

979


How to convert a list into a set?

891


What does .join mean in python?

938


Is python is a case sensitive?

865