Search⌘ K

Summary

Explore Python string manipulation, including encoding, decoding, and formatting with f-strings and format(). Understand regular expressions for parsing complex strings and learn common serialization methods like Pickle and JSON to manage data efficiently.

We'll cover the following...

Recall

In this chapter, we’ve looked at the following topics:

  • The ways to encode strings into bytes and decode bytes into strings. While some older character encodings (like ASCII) treat bytes and characters alike, this leads to confusion. Python text can be any Unicode character and Python bytes are numbers in the range 0 to 255.

  • String formatting lets us ...