CS Project
CS Project
1 CERTIFICATE
2 ACKNOWLEDGEMENT
3 OVERWIEW OF PYTHON
5 CODING
6 OUTPUR
7 BIBILIOGRAPHY
ACKNOWLEDGMENT
It is with pleasure that i find myself penning down these lines to express my sincere thanks to
all those people who helped me a long way in completing this project
The harmonious climate in our school provided proper atmosphere for preparing the project. It
was a privilege to have been guided by Mrs.Padmini
I am also grateful to my classmates who helped me during the finalization of the project with
their constructive criticism and advice
COIMBATORE:
DATE:
OVERVIEW 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 FEATURES
● 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 −
REQUIREMENTS
Processors: Intel Atom processor or Intel Core i3 processor.
Disk space: 1 GB
Included development tools: Jupyter Notebook, Python IDLE, Visual Studio IDE, Pycharm
IDE
CODING
import mysql.connector
# Connect to the MySQL database
db = mysql.connector.connect(
host="localhost",
user="root",
password="N12345",
database="library"
)
# Create a cursor to interact with the database
cursor = db.cursor()
print("---------------------------------------------------------------")
for row in result:
print(f"{row[0]} | {row[1]} | {row[2]} | {row[3]} | {row[4]}")
# Main menu
u=str(input("ENTER LIBRARIAN USERNAME:"));
print(u, "PLEASE ENTER YOUR PASSWORD (BELOW)")
lp=str(input("ENTER HERE:"))
lp1=lp.lower()
while lp1==("123456"):
print("\nPSGPS Library Management System")
print("------------------------------")
print("1. Add Book")
print("2. Add Student")
print("3. Issue Book")
print("4. Return Book")
print("5. Display Status")
print("6. Edit Student Details")
print("7. Exit")
if choice == "1":
add_book()
elif choice == "2":
add_student()
elif choice == "3":
issue_book()
elif choice == "4":
return_book()
elif choice == "5":
display_status()
elif choice == "6":
student_details()
elif choice == "7":
break
else:
print("Invalid choice. Please try again.")
BIBILIOGRAPHY
● codeprojects.org