Programs trade data in a few common formats, and two cover most everyday needs: CSV, for tables of rows and columns, and JSON, for nested data of the kind you built with dictionaries and lists. Python reads and writes both with its standard library. And because files can go missing, this lesson ends with how to handle the failures.
More lessons in Complete Python Programming