Download the unit 5 Resources
Welcome to UNIT 5 - Processing Data Files. Here we explore how to process data from files. Data can be stored in many different formats, so we learn how to read data using different strategies, including processing data as records, or using CSV files, or just reading raw data, line by line. When dealing with files we are also required to deal with possible exceptions that can occur and how to deal with them without the program terminating unexpectedly.
To understand how to read and write data to and from files.
Implement reading of data from a file using different strategies, character at a time, line at a time, or the read in the entire file into a list.
Learn how to create and read collections of data as a series of records.
Use the CSV format to read, filter and process data which can be taken from a spreadsheet.
Understand how exceptions work in Python and how to handle them.
How to raise executions and write exception handlers.