librarian.removeBookItemFromCatalog("125hg") librarian.displayAllBooks() librarian.removeBook("Shoe Dog") librarian.displayAllBooks() librarian.addBook('Shoe Dog', 'Phil Knight', '2015', 312) librarian.addBookItem("Shoe Dog", '123hg', 'H1B2') librarian.addBookItem("Shoe Dog", '124hg', 'H1B4') librarian.addBookItem("Shoe Dog", '125hg', 'H1B5') librarian.displayAllBooks() librarian.searchBook() print("\n\n") print("Testing Student and its functions:", "\n") m1 = Member("Vish", "Bangalore", 23, 'asljlkj22', 'std1233') print(m1) m1.issueBook("Moonwalking with Einstien", 5) m1.books_issued m1.displayAllBooks() m1.returnBook("466hg") m1.books_issued m1.displayAllBooks() librarian.viewMembers() m2 = Member("Aditya", "Delhi", 21, 'dkbcwibwei23', 'std1234') print(m2) m2.issueBook("Shoe Dog") m2.books_issued m2.returnBook("123hg") m2.books_issued m2.searchBook() librarian.viewMembers()
lib.addBookItem('Theory of Machines', 'SMNQS6664A', 'TM301') lib.addBookItem('Theory of Machines', 'SMNQS6664A', 'TM302') lib.viewBooks() lib.removeBookItem('SMNQS6664A') lib.viewBooks() lib.removeBook('Theory of Machines') lib.viewBooks() member1 = Member('Aditya', 'Indore', 24, '9424534453', 'ADI942') member2 = Member('Harish', 'Indore', 25, '9791457862', 'HAR979') print(member2) member1.viewBooks() member1.reserveBook('Thermodynamics') member2.reserveBook('Machine Design') member1.viewBooks() lib.viewissuedBookItems() lib.viewIssuerInfo() member1.returnBook() member2.returnBook() member1.viewBooks() member2.issuedBook('Thermodynamics') lib.addMember('Mayur', 'Indore', '23', '9179030140', 'MAY917') lib.viewMembers() lib.searchMember('Mayur') lib.removeMember('Harish') member1.reserveBook('Machine Design')