Aditya CS Project Full
Aditya CS Project Full
Signature of Student
Name of Student
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
III. CSV Module
Objective and Features
The main objective of this code is to create a system
to easily store, view, search, edit, and delete the
records of information of students of a particular
school, in this case NDPS.
Just as mentioned above, the following program can
perform the following functions:-
1) Add a new student’s entry to the database.
2) View the data of all the students at once.
3) Search and fetch the data of any specific student.
4) Edit the data of any student from the database.
5) Delete the data of any student from the database.
To achieve the above mentioned goals, I have used
CSV files. They can very easily be integrated into
Python projects, and are extremely versatile and user
friendly.
Coding
Below is the source code for the student record management
system made using Python and CSV files.
import csv
student_fields = ['SNo', 'Name', 'Age', 'Email', 'Phone']
student_database = 'students.csv'
def display_menu():
print("--------------------------------------")
print(" Welcome to NDPS Student Record Management
System")
print("---------------------------------------")
print("1. Add New Student to Database")
print("2. View Students in Database")
print("3. Search Student in Database")
print("4. Update Student in Database")
print("5. Delete Student from Database")
print("0. Quit")
def add_student():
print("-------------------------")
print("Add Student Information")
print("-------------------------")
global student_fields
global student_database
student_data = []
for field in student_fields:
value = input("Enter " + field + ": ")
student_data.append(value)
while True:
display_menu()
x = input("Enter number corresponding to the option you
would like to choose: ")
if x == '1':
add_student()
elif x == '2':
view_students()
elif x == '3':
search_student()
elif x == '4':
update_student()
elif x == '5':
delete_student()
else:
break
print("-------------------------------")
print(" Thank you for using NDPS Student Record Management
System")
print("Developed by Aditya Atre")
print("-------------------------------")
Output
Conclusion
www.geeksforgeeks.org
www.w3schools.com
realpython.com
python.mykvs.in