A library has books, members and loans, and the rules that connect them: a book cannot be lent if no copy is left, a member may only borrow so many, a book is due after two weeks, and a late return costs a fine. This project turns those rules into a set of classes that work together, and into a family of exceptions, one for each rule that can be broken. It is the first project in this module in which several objects depend on each other.
More lessons in Complete Python Programming