Master Python strings end to end — indexing and slicing, the essential methods, formatting, splitting and joining, searching, and an introduction to regular expressions with the re module. Aligned to the Python Institute PCAP certification, this course turns raw text into a data structure you can parse, clean and reshape with confidence.
Watch the free preview
Strings as immutable sequences — indexing and slicing — free to watch, no account needed.
What you'll learn
- Index, slice and reason about strings as immutable Unicode sequences
- Apply the core string methods for case, whitespace, searching and replacing
- Format values cleanly with f-strings, str.format() and format specifiers
- Split and join text to parse structured data such as CSV lines
- Write basic regular expressions with the re module to extract and validate text
Syllabus
String Fundamentals & Immutability
Strings as immutable sequences — indexing and slicingFree preview
Essential string methods — case, whitespace, search and replace
Formatting, Splitting & Joining
Formatting text — f-strings, format() and format specifiers
Splitting and joining — parsing and rebuilding text
Searching & Regular Expressions
Searching within strings — find, in, and membership
Regular expressions with the re module
Encoding & Practical Text Parsing
str versus bytes — text, encoding and decoding
Practical text parsing — from raw lines to structured data
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–5
Programming Exercises 6–10