Files and Exceptions
Midterm Exam
We did the in Class mid term exam in this session.
Summary
I introduced the concept of working with files and reading and writing files.
Reading and Searching files and lines
We introduced the simple verison of the 80s-music.csv
and athletes.csv
.
Also, I tried to adjust the 80s-music
sample and that created an unexpected loop that led me
to solve the problem by coming up with the assignment 06 project.
Book Crud App
We worked with these files: book records
This went wrong in a few places because the book quantities
were a float because I had hacked the coffee files; the coffee
quantities were not measured in integers. I had also added some easier book `.py
files for reference. However,
I did not make it clear that they were not part of the app, therefore some students used those
examples to work with the data, and it created problems.
We successfully covered most of chapter 6, but skipped over exceptions, which I will need to cover before the end of the semester.
I did not use slides, but used the online book for an overview.