Question: Create a library management system in which you have a pile of 4 books stacked over one another. Each book has a book number.
Create a library management system in which you have a pile of 4 books stacked over one another. Each book has a book number. Make a program in which a librarian stacks a pile of books over one another. A student wants to issue a book. The program first searches if the book is present in the stack or not. If the book hasn't been issued, the program finds out the index of the book. It also pops other books on the top of it to issue the book to the student. Display the books in the stack. (Hint: report the count of the books above the required book and use the pop() function "count" times.) [Marks-10]
Step by Step Solution
3.48 Rating (141 Votes )
There are 3 Steps involved in it
class Library def initself selfbooks 101 102 103 104 List of b... View full answer
Get step-by-step solutions from verified subject matter experts
