Shankar XXX
Shankar XXX
1
SNO TOPIC Page.no
1. ACKNOWLEDGEMENT 4
2. Introduction of Python 5
3. Introduction of MYSQL 8
4. Introduction of Project 10
5. Theory 11
6. System requirement 12
2
7. Coding 13
8. Output 14
9. Biblography 22
3
ACKNOWLEDGMENT
4
INTRODUCTION TO PYTHON
5
6
HISTORY OF PYTHON
fewer lines
7
INTRODUCTION TO MYSQL
8
9
INTRODUCTION TO PROJECT
10
THEORY
IMPORT MYSQL.CONNECTOR
“LOCALHOST”
USER= “ROOT”
PASSWORD= “YOUR PASSWORD”)
11
SYSYTEM REQUIREMENTS
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
Windows 7 or higher
MySQL server 5.5 or higher
Python idle 3.6 or higher
12
CODING
CREATE DATABASE
LIBRARY; USE LIBRARY;
create table books (b name varchar (50), b code varchar (10), total
int, subject varchar (50));
create table issue (name varchar (50), regno varchar (10), b code int,
issue varchar (50));
create table submit (name varchar (50), regno varchar (10), b code int,
submit varchar (50));
13
Coding for python
14
def issue b ():
n=input ("enter name:") r=input
a="insert into issue values (%s, %s, %s, %s)" data= (n, r,
cod)
con. commit ()
15
def book up (co, u):
my result= c. fetchone () t=
my result [0] + u
c.execute (sql, d) my
16
def d book ():
c. execute(a, data) my
17
def disp book ():
con. cursor ()
c.execute(a) myresult= c.
main ()
18
def main ():
print (""""
LIBRARY MANAGER
1. ADD BOOK
2. ISSUE BOOK
3. SUBMIT BOOK
4. DELETE BOOK
5. DISPLAY BOOKS
""")
19
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 ()
20
def pswd ():
ps=="py143":
main ()
else:
print ("Wrong password") pswd ()
pswd()
21
OUTPUTS
Add a book
Issue a book
22
Submission of book
23
TABLES
24
Select * from submit
25
BIBLIOGRAPHY
www.google.com
www.youtube.com
www.geeksforgeeks.org
26