Unicode & Character Encodings in Python: A Painless Guide Quiz
Interactive Quiz ⋅ 13 Questions
By Joseph Peart
In this quiz, you’ll test your understanding of Unicode & Character Encodings in Python: A Painless Guide.
By working through this quiz, you’ll revisit how character encodings map text to bits,
how binary, octal, and hex literals work, and how Unicode and UTF-8 relate. You’ll also
practice moving between str and bytes, counting how many bytes a character takes up,
converting with ord() and chr(), and writing Unicode escape sequences.
Along the way, you’ll see why you should always name your encoding explicitly, and what to do when bytes from someone else won’t decode.
The quiz contains 13 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Course
Unicode in Python: Working With Character Encodings
In this course, you'll get a Python-centric introduction to character encodings and Unicode. Handling character encodings and numbering systems can at times seem painful and complicated, but this guide is here to help with easy-to-follow Python examples.
Tutorial
Unicode & Character Encodings in Python: A Painless Guide
In this tutorial, you'll get a Python-centric introduction to character encodings and unicode. Handling character encodings and numbering systems can at times seem painful and complicated, but this guide is here to help with easy-to-follow Python examples.