Library Management Himesh
Library Management Himesh
CANTT
PROJECT REPORT
Class: XII-A
PRINCIPAL
ACKNOWLEDGMENT
IMPORT MYSQL.CONNECTOR
HOST= “LOCALHOST”
USER= “ROOT”
PASSWORD= “YOUR PASSWORD”)
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
Windows 7 or higher
MySQL server 5.5 or higher
Python idle 3.6 or higher
my con. commit ()
print (">___________________________________<")
my result= c. fetchone ()
t= my result [0] + u
d= (t, co)
c.execute (sql, d)
my con. commit ()
main ()
def d book ():
data=(ac,)
c. execute(a, data)
my con. commit ()
main ()
def disp book ():
a="select*from books"
c.execute(a)
myresult= c. fetchall ()
for i in myresult:
print (">_____________________________<")
main ()
def main ():
print (""""
LIBRARY MANAGER
1.ADD BOOK
2.ISSUE BOOK
3.SUBMIT BOOK
4.DELETE BOOK
5.DISPLAY BOOKS
""")
choice=input ("enter Task No:")
print
(">______________________________________<")
if(choice=='1'):
addbook()
elif(choice=='2'):
issueb()
elif(choice=='3'):
submitb()
elif (choice=='4'):
dbook ()
elif (choice=='5'):
disp book ()
else:
print ("Wrong choice....")
main ()
def pswd ():
if ps=="py143":
main ()
else:
print ("Wrong password")
pswd ()
pswd()
OUTPUTS
Add a book
Issue a book
Submission of book
TABLES
www.google.com
www.youtube.com
www.geeksforgeeks.org