Lesson 16 — Working with data: files, CSV, simple analysis
Unit II · Computational problem solving

L16_flight_log.csv                           student     Invented 50-row charter-operator flight log with four planted defects.
L16_inspect.py                               student     Inspection script: row and field counts, strict decoding, empties, min/max.
L16_starter_analysis.py                      student     Model-style analysis that runs cleanly and silently drops and mangles rows (written for the lesson).
L16_strict_read_broken.py                    student     Strict UTF-8 read of the log; raises UnicodeDecodeError.
L16_defect_log.txt                           student     Defect log and summary template with AI-use record.
L16_example_fitness.csv                      student     Worked example data: eight invented fitness-test records.
L16_example_fitness.py                       student     Worked example: inspect then analyse the fitness-test file.
L16_summary_choices.py                       student     A4 summary statistics with one True/False switch per defect; learner sets the switches to their handling choices and runs it.

Python 3.11 or newer. Standard library only. Run each program from the folder the lesson tells you to put it in:
    python <file>.py        (Windows)
    python3 <file>.py       (macOS and Linux)
