0% found this document useful (0 votes)
20 views

ProjectPy 2024

fantastic python project
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

ProjectPy 2024

fantastic python project
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python project (June-August 2024)

Final Project: Personal Library Management System

Objective: Create a simple command-line-based Library Management System where


users can add, view, update, and delete books in a personal library. The system should
store book information in a le and should handle errors gracefully.

Project Requirements:

1. Classes and Objects:

o Create a Book class with attributes such as title, author, year, and isbn.

o Create methods within the Book class to display book details.

2. Library System:

o Create a Library class that manages a collection of Book objects.

o Include methods to add, remove, update, and search for books in the
library.

o Implement a method to list all books in the library.

3. File Handling:

o Store the library's book collection in a le (e.g., library.txt).

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:

1. Add a new book

2. View all books

3. Update a book's information

4. Delete a book
5. Search for a book

6. Exit the program

6. Functions and Modules:

o Organize the code using functions where appropriate.

o Consider creating a separate module for the Book and Library classes
and importing it into the main program.

Extra Challenge:

 Search Functionality: Implement search functionality that allows users to nd


books by title, author, or ISBN.

 Data Validation: Ensure that users can’t add books with empty elds or invalid
data.

 Recursion: If comfortable, add a feature to search for a book recursively based


on a substring of the title or author.

You might also like