Exercise 23: Strings, Bytes, and Character Encodings
To do this exercise you'll need to download a text file that I've written named languages.txt (https://learnpythonthehardway.org/python3/languages.txt) This file was created with a list of human languages to demonstrate a few interesting concepts:
- How modern computers store human languages for display and processing and how Python 3 calls this strings.
- How you must "encode" and "decode" Python's strings into a type called bytes.
- How to handle errors in your string and byte handling.
- How to read code and find out what it means even if you've never seen it before.