Lab: The booknook package, on real dates
Module 7 · Lab · About 60 minutes · Needs: lessons 1 to 4 of this module, and the Module 6 lab (the five settled functions)
What you are building
Amira's request for this module is "Use real dates." The four lessons built the pieces in Colab's own folder, which empties itself when the session ends. This lab puts them together as one project folder, booknook, kept in your Google Drive, where every lab from now on adds to it.
Inside the folder go the Python package booknook with four modules: fees.py (the rules, late_fee and reminder_text), dates.py (due_date, days_late and is_overdue on real dates), and a new catalogue.py (books per genre, copies on the shelf). Beside the package go the four data files from the course's shared data and requirements.txt. Then a notebook imports the package and answers Amira's morning question from real dates: four loans overdue, 580 pence owed.
Open a new Colab notebook, call it module-07-lab.ipynb, and run each cell in order.