Skip to content
Learn Python with BNHR

Module 6 · Beginner

Text, files and errors

Module 6 of Python Essentials: text methods, regular expressions, reading text and CSV files, and handling errors. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.

Module 6Level Beginner
On this page
  1. Overview
  2. What you do
  3. The module’s notebooks
  4. Quizzes
  5. Certification and support

Real records arrive as files written by other people: names with stray spaces, a word where a number should be, a line that does not fit. This module reads the barangay’s records from files, cleans the text, checks its shape with regular expressions, and handles what does not fit without the notebook falling over.

  1. Working with text: its methods
  2. Patterns with regular expressions
  3. Reading and writing files: text and CSV
  4. Errors and exceptions: handling them, and failing with a clear message

The notebooks are in your course folder; here you can read them without running anything.

Quizzes

  • Check-inAt the end of the module. A short check on “Text, files and errors”, and how ready you feel; its answers show as soon as you submit.Check-in: Text, files and errors ↗

The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.

Saved in this browser only

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a glossary
GlossaryGlossary
AboutThe glossary of Arrays & DataFrames, for any time: the words the course uses, in plain language, each with where you meet it.
CourseArrays & DataFrames, free