Replymessage unavailable
wanna know why??
at line 68-73 you are checking that condition before adding the book
first time you add the book length of borrowed books increases => 1
secomd time you add it becomes => 2
third time it becomes => 3
when fourth time you add the book, your condition checks if the length of borrowed books is *higher* than 3, but currently the length is 3 right now, so it adds the 4th book as well and length becomes => 4, but next time when try to add, the condition catches you and dosent let you add more.
you should change that condition to either
len(borrowed_books) == 3
or
len(borrowed_books) >= 3