Module 4

Modules, File I/O, and Error Handling

Covers writing and importing custom modules, using standard library modules, reading and writing text and CSV files with the with-statement context manager, working with JSON, and applying try-except patterns for graceful error handling in engineering scripts.

Topics

This module covers 7 topics. Open a topic to see its subtopics.

  1. Introduction to Python Modules5 subtopics
  2. Writing and Using Custom Modules5 subtopics
  3. Using Standard Library Modules5 subtopics
  4. File I/O with the with Statement5 subtopics
  5. Reading and Writing CSV Files5 subtopics
  6. Working with JSON5 subtopics
  7. Error Handling with try-except6 subtopics

Module Content

13 items.