January 2019
Beginner
318 pages
8h 23m
English
In this section, we are going to learn about how to print Unicode strings in Python. Python handles Unicode strings in a very easy way. The string type actually holds Unicode strings, not a sequence of bytes.
Start the python3 console in your system and start writing the following:
student@ubuntu:~/work$ python3Python 3.6.6 (default, Sep 12 2018, 18:26:19)[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linuxType "help", "copyright", "credits" or "license" for more information.>>> >>> print ('\u2713')
>>> print ('\u2724')>>> print ('\u2750')>>> print ('\u2780')>>> chinese = '\u4e16\u754c\u60a8\u597d!>>> chinese ...Read now
Unlock full access