Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
For this assignment you will be writing a single program that will contain three Python object-oriented
classes and methods associated with each class. The classes will model a library with its books, patrons
(library users), and check-outs (books checked out to patrons). Name your program file in the manner you
have done in previous assignments and submit it in Brightspace as usual.
If you work with another person on this program, please be sure to credit them in the comments in the
header of the program. Remember to comment your programs well and to put a header at the top of the
program with your name, the course number and section, the date, and the assignment number.
You do not have to use IPO notation for the methods you write for this assignment but put at least a one-
line header comment above each method you write. However, you should use IPO notation for any
functions you write outside the class definitions.
Problem: Define Classes Describing Books, Patrons, and Checkouts
For this problem you will be defining three classes, Book, Patron, and Checkout. For each, you will need
to define the __init__ and __str__ methods to respectively initialize objects in the classes and to print
them.
The Book class has four attributes, three of which are passed to it at instance initialization. The first three
are the author (a string), the title of the book (a string), and the number of copies that the library has (a
positive integer from 1 to 4). The fourth is the number of copies checked out, which should be set to zero
at initialization.