Solution: Library System
Go over the solution for implementing the library system.
We'll cover the following...
Solution
TITLE, AUTHOR Name of the First Book, Author 1 Name of the Second Book, Author 2 Name of the Third Book, Author 1 Name of the Fourth Book, Author 3 Name of the Fifth Book, Author 6 Name of the Sixth Book, Author 5 Name of the Seventh Book, Author 6 Name of the Eighth Book, Author 4 Name of the Ninth Book, Author 3 Name of the Tenth Book, Author 2
Implementing the simplified library system
Explanation
Lines 2–4: The class variables are defined to keep records of books, members, and rentals.
Lines 6–16: The class method
import_books
is defined to load information of books from a given CSV file.Lines 18–24: ...