chapter

Data & Files

Reading, writing, parsing, and the errors that show up around files.

  1. 01
    Reading and Writing Files

    Reading and writing files is how your Python programs interact with data that lives outside the program itself.

    BeginnerFiles
  2. 02
    Working With Text Files

    Working with text files in Python is about reading from and writing to files on your computer that contain plain text.

    BeginnerFiles
  3. 03
    Parsing Simple Data

    Parsing simple data means taking text that already has some structure and turning it into values your program can work with directly.

    IntermediateFiles
  4. 04
    Handling Errors Gracefully

    Handling errors gracefully is about writing code that anticipates problems and responds to them in a controlled way, rather than letting the program stop abruptly.

    IntermediateFiles
  5. 05
    Organizing a Small Project

    Organizing a small project is about giving your code a clear structure so that you, and anyone else who reads it later, can understand what each part does and where…

    IntermediateFiles
  6. 06
    Using Libraries Wisely

    Using libraries wisely means choosing the right tools for file handling tasks instead of writing everything from scratch.

    IntermediateFiles