This repository has been deprecated, but is being kept online to preserve course links.

For the latest content please see the repository at:
https://umd-ischool-inst326.github.io/inst326/

Overview

Module 4 introduces some techniques for reading and writing data into files with Python. In addition to plain text files (TXT), we’ll also look at two commonly used data serializations: Comma-Separated Values (CSV), and Javascript Object Notation (JSON).

Learning Outcomes

After completing this module, students should understand:

  • The purpose of file handles and how to create them.

  • How to read and write text to/from files using file handles and file modes.

  • The structure of CSV files and some of their use-cases.

  • The structure of JSON files and some of their use-cases.

References

The following optional readings provide additional coverage for the topics covered in the lecture videos and slides: