Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

Python and FastAPI

Module 7 · Text, errors, files and context managers

Strings in depth, unicode, exceptions, files and paths, simple classes and context managers — the everyday tools of real programs.

8 lessons Follow in order
Use the button below to sign in and unlock lessons.
Your path

Lessons in sequence

Work through these in order—each lesson builds on the previous one.

  1. Lesson 1 of 8

    7.1 Strings, formatting and parsing

    Enroll to open · 22 min read

  2. Lesson 2 of 8

    7.2 String methods, Unicode and encodings

    Enroll to open · 24 min read

  3. Lesson 3 of 8

    7.3 try, except and useful errors

    Enroll to open · 24 min read

  4. Lesson 4 of 8

    7.4 Raising and designing custom exceptions

    Enroll to open · 26 min read

  5. Lesson 5 of 8

    7.5 Files and pathlib

    Enroll to open · 26 min read

  6. Lesson 6 of 8

    7.6 Reading and writing files in practice

    Enroll to open · 27 min read

  7. Lesson 7 of 8

    7.7 Classes for structure (a first look)

    Enroll to open · 25 min read

  8. Lesson 8 of 8

    7.8 Context managers and the with statement

    Enroll to open · 26 min read

← Back to course