Python distinguishes between byte strings and Unicode strings. *Decoding* transforms bytestrings to Unicode; *encoding* transforms Unicode strings to bytes.