Kalyani Cs Project-129
Kalyani Cs Project-129
GMEINER
NN SC
A H
M
OO
R
HE
L
2023-2024
1
2
CERTIFICATE
This is to certify that Student Name CBSE Roll
no……… has successfully completed the Project
work entitled student management system in the
subject Computer Science (083) laid down in the
regulations of CBSE for the purpose of Practical
Examination in Class XII to be held in HERMANN
GMEINER SCHOOL on Date
Principal signature:
____________________
2
3
PREFACE
3
4
ACKNOWLEDGEMENT
TABLE OF CONTENTS:
5
6
INTRODUCTION OF PROJECT
6
7
Requirements:
IV. MONITOR
REQUIREMENTS:
• Windows OS
• Python
• Mysql
7
8
INTRODUCTION TO PYTHON
8
9
INTRODUCTION TO MYSQL
9
10
SOURCE
CODE..
10
11
import mysql.connector
# Connect to MySQL
connection = mysql.connector.connect(
host="local host",
user="root",
password="sql123",
database="kalyani"
)
def main_menu():
11
12
def main():
while True:
main_menu()
choice = input("Enter your choice (0-9): ")
if choice == "1":
12
13
13
14
14
15
if confirmation.lower() == 'y':
drop_students_table()
print("Students table dropped.")
else:
print("Invalid choice. Please enter a
number between 0 and 9.")
if __name__ == "__main__":
main()
# Close the cursor and connection when done
cursor.close()
connection.close()
16
17
OUTPUT:
17
18
TO ADD STUDENT:
18
19
TO DISPLAY STUDENTS
19
20
TO UPDATE STUDENT
20
21
TO DELETE STUDENT
21
22
22
23
23
24
24
25
OLDEST STUDENT
25
26
26
27
TO EXIT…..
27
28
Design:
28
29
BIBLIOGRAPHY
For the completion of this project I
have taken help from the following
book/sites:
29