COMPUTER SCIENCE PROJECT (Python – 083)
Class XII (CBSE)
Project Title: Student Management System using Python
CERTIFICATE
This is to certify that the student of Class XII has successfully completed the Computer Science
Project titled 'Student Management System using Python' as per the CBSE curriculum for the
academic session 2025–26.
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to my Computer Science teacher for valuable guidance
and support. I also thank my parents and friends for their encouragement during the completion of
this project.
INTRODUCTION
Python is a powerful and easy-to-learn programming language. This project demonstrates the use
of Python for developing a simple Student Management System using file handling.
OBJECTIVES
- To understand Python programming concepts
- To implement file handling
- To manage student data efficiently
TOOLS & TECHNOLOGY USED
Programming Language: Python 3
Editor: IDLE / Visual Studio Code
Operating System: Windows / Linux
PROJECT DESCRIPTION
The Student Management System allows the user to add new student records, display all existing
records, and search records using roll numbers. The data is stored permanently using text file
handling.
PYTHON SOURCE CODE
# Student Management System using Python
import os
filename = "[Link]"
def add_student():
roll = input("Enter Roll Number: ")
name = input("Enter Student Name: ")
marks = input("Enter Marks: ")
with open(filename, "a") as file:
[Link](f"{roll},{name},{marks}\n")
print("Record Added Successfully")
def display_students():
if not [Link](filename):
print("No records found")
return
with open(filename, "r") as file:
for line in file:
roll, name, marks = [Link]().split(",")
print("Roll:", roll, "Name:", name, "Marks:", marks)
def search_student():
search_roll = input("Enter Roll Number to Search: ")
found = False
if not [Link](filename):
print("No records found")
return
with open(filename, "r") as file:
for line in file:
roll, name, marks = [Link]().split(",")
if roll == search_roll:
print("Record Found")
print("Roll:", roll)
print("Name:", name)
print("Marks:", marks)
found = True
break
if not found:
print("Record Not Found")
while True:
print("\n1. Add Student Record")
print("2. Display All Records")
print("3. Search Student Record")
print("4. Exit")
choice = input("Enter your choice: ")
if choice == '1':
add_student()
elif choice == '2':
display_students()
elif choice == '3':
search_student()
elif choice == '4':
print("Thank You")
break
else:
print("Invalid Choice")
SAMPLE OUTPUT
1. Add Student Record
Enter Roll Number: 101
Enter Student Name: Rahul
Enter Marks: 88
Record Added Successfully
CONCLUSION
This project enhanced my understanding of Python programming and file handling. It demonstrates
how simple programs can be used to manage real-life data efficiently.
BIBLIOGRAPHY
1. NCERT Computer Science Textbook (Class XII)
2. [Link]
3. Teacher's Notes