Reupload (purge)

This commit is contained in:
gauvainboiche
2026-08-04 16:42:35 +02:00
commit bb74ba5173
1023 changed files with 79600 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from classes import Book, Library
library = Library("Romanesque")
def register_book(title: str, author: str):
book = Book(title, author)
return library.add_new_book(book)
def list_titles() -> list[str]:
return [book.title for book in library.list_books_in_list()]
def delete_book(title: str):
return library.take_out_book(title)
def search_by_letter(letter: str):
return library.search_book_by_letter(letter)
def search_by_word(word: str):
return library.search_book_by_word(word)