This lesson is about data: how to name a fixed set of choices so that they cannot be mistyped, how to describe a record with almost no code, and how to read and write the two formats that programs use to talk to each other, JSON and CSV. The enum and dataclasses modules are tools for your own code, and json and csv are for the world outside it.
More lessons in Complete Python Programming