Quiz Project File
Quiz Project File
Quiz Project File
MANAGEMENT
SRDKVV
SCHOOL PROJECT
Name: H.Monish
V.Madhavan
P.S.Saisreesannth
Class: XII-’C’
Subject: Computer Science
Topic: Library Management
BONAFIDE CERTIFICATE
School Seal
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to my Computer
Science Teacher Smt. D. Nalini Devi for her able guidance and support in
completing this project.
1. HARDWARE
Processor
Keyboard
Minimum memory – 2 GB
2. SOFTWARE
Operating System
Python IDLE
MySQL
Introduction to Python
library=d.cursor()
def insertrecord():
pu=input("Enter publisher")
ed=input("Enter edition")
au=input("Enter author")
sql= "insert into librarymsm (sno, name_book, publisher, edition, authorname,qty) values(%s,
%s, %s, %s, %s, %s)"
data=(no,s,pu,ed,au,qty)
library.execute(sql, data)
d.commit()
x=library.fetchall()
print(x)
d.close()
def deleterecord():
no=int(input("enter sno"))
library.execute (sql,dele)
d.commit()
x=library.fetchall()
print(x)
d.close()
def displayrecord():
library.execute(sql)
x=library.fetchall()
no=int(input("enter sno"))
for i in x:
if i[0]==no:
print(i)
d.close()
def updaterecordall():
q=int(input("enter quantity"))
upd=(q,)
library.execute(sql, upd)
d.commit()
x=library.fetchall()
print(x)
d.close()
def updaterecord():
q=int(input("enter quantity"))
upd=(q,n)
library.execute(sql, upd)
d.commit()
x=library.fetchall()
print(x)
d.close()
while True:
print("1.Insert\n2.Delete\n3.Display\n4.Update\n5.Update All\n6.exit")
if lib==1:
insertrecord()
elif lib==2:
deleterecord()
elif lib==3:
displayrecord()
elif lib==4:
updaterecord()
elif lib==5:
updaterecordall()
else:
Break
OUTPUT