RANIARANIA Academy

Strings & Text Processing

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.

Python: Foundations INTERMEDIATE · 150 min · Certificate on completion · 3 CPD points

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 preview15 min
Essential string methods — case, whitespace, search and replace15 min
Formatting, Splitting & Joining
Formatting text — f-strings, format() and format specifiers15 min
Splitting and joining — parsing and rebuilding text15 min
Searching & Regular Expressions
Searching within strings — find, in, and membership15 min
Regular expressions with the re module15 min
Encoding & Practical Text Parsing
str versus bytes — text, encoding and decoding15 min
Practical text parsing — from raw lines to structured data15 min
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–515 min
Programming Exercises 6–1015 min