ProjectPy 2024
ProjectPy 2024
Project Requirements:
o Create a Book class with attributes such as title, author, year, and isbn.
2. Library System:
o Include methods to add, remove, update, and search for books in the
library.
3. File Handling:
o Implement methods to read from and write to this le, ensuring that the
library's data persists between program runs.
4. Error Handling:
o Use try-except blocks to handle potential errors, such as le not found,
invalid input, or trying to update/delete a book that doesn't exist.
5. Control Structures:
o Use loops and conditionals to build a simple menu system where the
user can choose options like:
4. Delete a book
5. Search for a book
o Consider creating a separate module for the Book and Library classes
and importing it into the main program.
Extra Challenge:
Data Validation: Ensure that users can’t add books with empty elds or invalid
data.