SigmaAnalytics & Tech
A6PythonBeginnerAbout 120 min to complete

Strings

The text-handling fluency that makes real-world data cleaning possible.

Notebook

About 120 minutes to complete

Enrol to read the notebook and download it to run.

What this module covers

The text-handling fluency that makes real-world data cleaning possible.

By the end of it

  • Create strings with single, double, triple quotes and raw strings, and choose correctly
  • Index and slice strings confidently, including negative indices and strides
  • Explain string immutability and its performance consequences
  • Apply the string methods that do most real cleaning work: .strip(), .split(),
  • Format output precisely with f-strings: alignment, precision, thousands separators, dates
  • Choose between .join() and += for building strings, and justify it with a benchmark
  • Handle Unicode, encodings, and the invisible characters that break real datasets
  • Recognise when a problem needs a regular expression rather than a string method