Strings · Part 2
Case methods, split/join, find/replace, strip, startswith/endswith, f-string formatting.
Lesson 07 · Strings · Part 2 — Level I · Guide
June 25, 2026 · Bridge Academy Python Program
Learning goals
- Change case with .upper(), .lower(), .title(), .capitalize(). - Split a string into pieces with .split() and stitch pieces together with .join(). - Search with .find() and rewrite text with .replace(). - Clean whitespace with .strip(), .lstrip(), .rstrip(). - Test endings with .startswith(), .endswith(), and count occurrences with .count(). - Format f-string values with :.2f and alignment like {num:>5}.
This lesson covers PCEP-30-02 objective 3.4.
Preview truncated — download the notebook to see the full lesson.