Skip to main content

Chapter 62 Quiz

Before taking the quiz, verify that you can do each of these without looking at the lessons:

  • Build file paths with pathlib.Path and the / operator
  • Read and write text files with read_text(), write_text(), and the with statement
  • Convert between Python dataclasses and JSON using json.dumps() and json.loads()
  • Read and write CSV files with csv.DictReader and csv.DictWriter
  • Chain read, transform, and write stages into a processing pipeline
  • Handle FileNotFoundError, PermissionError, and json.JSONDecodeError with try/except
  • Design a class that wraps multiple file formats behind a unified interface

If any feel uncertain, revisit the specific lesson before continuing.

Test your understanding of the full file I/O and data processing stack by evaluating path construction, format conversions, pipeline design, and error handling.

Checking access...