Python: Print Unicode characters
Python Basic: Exercise-116 with Solution
Write a Python program to print Unicode characters.
Sample Solution:
Python Code:
# Create a Unicode string by specifying each character's Unicode escape sequence.
str = u'\u0050\u0079\u0074\u0068\u006f\u006e \u0045\u0078\u0065\u0072\u0063\u0069\u0073\u0065\u0073 \u002d \u0077\u0033\u0072\u0065\u0073\u006f\u0075\u0072\u0063\u0065'
# Print a blank line for separation.
print()
# Print the Unicode string, which will be displayed as "Python Exercises - w3resource".
print(str)
# Print another blank line for separation.
print()
Sample Output:
Python Exercises - w3resource
Flowchart:
Python Code Editor:
Previous: Write a Python program to compute the product of a list of integers (without using for loop).
Next: Write a Python program to prove that two string variables of same value point same memory location.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://198.211.115.131/python-exercises/python-basic-exercise-116.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics