P6 — Text Processing in Python
About 55 min
Before L4.1 — Text Is Not Numbers Yet, read strings and regex patterns used by the L4.1, L4.2, L4.3, L4.7, and L4.13 Lab starters. P3 teaches writing functions and loops. If you get every question below right, you can move to the next lesson. This optional guide, its diagnostic, and its Lab do not count toward course progress.
Quick Check
Goal
Use string operations, a small regular expression, dict/set and Counter to trace text → tokens → counts → token IDs. Distinguish Unicode characters from encoded bytes.