Library Management Project Code Class X 2024-2025
Library Management Project Code Class X 2024-2025
Library Management
Internal Examiner
OVEVIEW OF Python
Python is a high-level, interpreted, interactive and object-oriented scripting language.
Python is designed to be highly readable. It uses English keywords frequently where as
other languages use punctuation, and it has fewer syntactical constructions than other
languages.
Python is Interpreted − Python is processed at runtime by the
interpreter. You do not need to compile your program before executing it. This is
similar to PERL and PHP.
Python is Interactive − You can actually sit at a Python prompt and
interact with the interpreter directly to write your programs.
Python is Object-Oriented − Python supports Object-Oriented style or
technique of programming that encapsulates code within objects.
Python is a Beginner's Language − Python is a great language for the
beginner-level programmers and supports the development of a wide range of
applications from simple text processing to WWW browsers to games.
History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at
the National Research Institute for Mathematics and Computer Science in the
Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-
68, SmallTalk, and Unix shell and other scripting languages.
Python is copyrighted. Like Perl, Python source code is now available under the GNU
General Public License (GPL).
Python is now maintained by a core development team at the institute, although Guido
van Rossum still holds a vital role in directing its progress.
Python Features
Python's features include −
Easy-to-learn − Python has few keywords, simple structure, and a clearly
defined syntax. This allows the student to pick up the language quickly.
Easy-to-read − Python code is more clearly defined and visible to the
eyes.
Easy-to-maintain − Python's source code is fairly easy-to-maintain.
A broad standard library − Python's bulk of the library is very portable
and cross-platform compatible on UNIX, Windows, and Macintosh.
Interactive Mode − Python has support for an interactive mode which
allows interactive testing and debugging of snippets of code.
Portable − Python can run on a wide variety of hardware platforms and
has the same interface on all platforms.
Extendable − You can add low-level modules to the Python interpreter.
These modules enable programmers to add to or customize their tools to be
more efficient.
Databases − Python provides interfaces to all major commercial
databases.
GUI Programming − Python supports GUI applications that can be
created and ported to many system calls, libraries and windows systems, such
as Windows MFC, Macintosh, and the X Window system of Unix.
Scalable − Python provides a better structure and support for large
programs than shell scripting.
Apart from the above-mentioned features, Python has a big list of good features, few
are listed below −
It supports functional and structured programming methods as well as
OOP.
It can be used as a scripting language or can be compiled to byte-code
for building large applications.
It provides very high-level dynamic data types and supports dynamic type
checking.
It supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
PANDAS:
Pandas is a software library written for the Python programming language for data
manipulation and analysis. In particular, it offers data structures and operations for
manipulating numerical tables and time series.
To import this library:
import pandas as pd
MATPLOTLIB
Matplotlib is a plotting library for the Python programming language and its numerical
mathematics extension NumPy.
To import this library:
import matplotlib.pyplot as plt
import numpy as np
OVEVIEW OF Project
INTRODUCTION
This project is all about a software for library. It helps the Book Stall Owner to
have a full-fledged control over his/her stall. It adds a new stock, updates an existing
stock and of course prints a receipt to the customer. Besides it displays a graph of the
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
import pandas as pd
import csv
df=pd.read_csv("lib data.csv",index_col="bookcode")
ch=1
while(True):
print("Menu of Functions")
print("1.display")
print("2.adddeatils")
print("3.Delete details")
print("6.Search by columns")
print("7.Search by row")
print("10.exit")
if ch==1:
print(df)
elif ch==2:
bookcode=input("Enter book code to be added")
df.loc[bookcode]=[bookname,bookprice,author]
elif ch==3:
if book_code in df.index:
print(df)
else:
elif ch==4:
print(df.head(no_record))
elif ch==5:
print(df.tail(no_record))
elif ch==6:
print(df[B_id])
elif ch==7:
x=input("Enter the name of book whose record to be search")
m=x.upper()
result = df[df['bookname'] == m]
if not result.empty:
print(result)
else:
elif ch==8:
df.plot(kind="bar")
plt.show()
elif ch==9:
df.plot()
plt.ylabel("price")
plt.show()
elif ch==10:
break
Output:
##--Library Management System--##
Menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice1
The Details of Library are:
BookName BookPrice Author
Bookcode
B01 English 200 AK Singal
B02 Hindi 345 SD Sharma
B03 Maths 295 RD Sharma
B04 Science 345 AK Mittal
B05 Social Science 290 ML Sindhu
B06 Computer 345 RK mittal
menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice8