0% found this document useful (0 votes)
6 views14 pages

Class12 CS Python Project

The document outlines a Class 12 Computer Science project titled 'Python-Based Student Record System', which involves creating a program to manage student records using Python. It includes sections on the project's introduction, objectives, tools, source code, and advantages/limitations. The project demonstrates file handling capabilities and offers potential for future enhancements like GUI and database integration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views14 pages

Class12 CS Python Project

The document outlines a Class 12 Computer Science project titled 'Python-Based Student Record System', which involves creating a program to manage student records using Python. It includes sections on the project's introduction, objectives, tools, source code, and advantages/limitations. The project demonstrates file handling capabilities and offers potential for future enhancements like GUI and database integration.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Class 12 Computer Science Project: Python-Based Student Record System

Class 12th Computer Science Project File

Project Title: Python-Based Student Record System

Submitted By: Your Name

Class: XII

Session: 2025-2026

School Name: Your School Name


Class 12 Computer Science Project: Python-Based Student Record System

Acknowledgment

I sincerely thank my Computer Science teacher for guidance and support throughout this project. This file is

the result of their encouragement and my learning in Python programming.


Class 12 Computer Science Project: Python-Based Student Record System

Certificate

This is to certify that [Your Name], Class XII student, has successfully completed the Computer Science

project titled 'Python-Based Student Record System' under CBSE guidelines for the session 2025-26.
Class 12 Computer Science Project: Python-Based Student Record System

Index

1. Introduction

2. Objective

3. Tools & Technology

4. Scope of Project

5. Python Source Code

6. Output Screens

7. Advantages & Limitations

8. Conclusion

9. Bibliography
Class 12 Computer Science Project: Python-Based Student Record System

Introduction

This project demonstrates a simple Python program to manage student records. It includes adding, viewing,

and searching student data using text file storage and Python's basic features.
Class 12 Computer Science Project: Python-Based Student Record System

Objective

- Apply Python skills to real-world data handling.

- Build a menu-driven program.

- Use file handling to store records persistently.


Class 12 Computer Science Project: Python-Based Student Record System

Tools & Technology

- Programming Language: Python 3.x

- Editor: IDLE / PyCharm / VS Code

- OS: Windows/Linux

- Modules Used: os, file handling, and functions


Class 12 Computer Science Project: Python-Based Student Record System

Scope of Project

This project can be further expanded with:

- GUI (Tkinter)

- Database integration (MySQL)

- Web Interface (Django or Flask)


Class 12 Computer Science Project: Python-Based Student Record System

Python Source Code

import os

def add_student():

name = input("Enter student name: ")

roll = input("Enter roll number: ")

clas = input("Enter class: ")

marks = input("Enter marks: ")

with open("students.txt", "a") as f:

f.write(f"{name},{roll},{clas},{marks}\n")

print("Student added.\n")

def view_students():

print("\n--- All Students ---")

with open("students.txt", "r") as f:

for line in f:

name, roll, clas, marks = line.strip().split(',')

print(f"Name: {name}, Roll: {roll}, Class: {clas}, Marks: {marks}")

def search_student():

roll_search = input("Enter roll number to search: ")

found = False

with open("students.txt", "r") as f:

for line in f:
Class 12 Computer Science Project: Python-Based Student Record System

name, roll, clas, marks = line.strip().split(',')

if roll == roll_search:

print(f"Found - Name: {name}, Class: {clas}, Marks: {marks}")

found = True

if not found:

print("Student not found.")

def menu():

while True:

print("\n1. Add Student\n2. View All Students\n3. Search Student\n4. Exit")

choice = input("Enter choice: ")

if choice == '1':

add_student()

elif choice == '2':

view_students()

elif choice == '3':

search_student()

elif choice == '4':

break

else:

print("Invalid input!")

menu()
Class 12 Computer Science Project: Python-Based Student Record System

Output Screens

1. Add Student

2. View All Students

3. Search Student

4. Exit

Enter choice: 1

Enter student name: Ravi

Enter roll number: 23

Enter class: 12

Enter marks: 85

Student added.

--- All Students ---

Name: Ravi, Roll: 23, Class: 12, Marks: 85


Class 12 Computer Science Project: Python-Based Student Record System

Advantages & Limitations

Advantages:

- Easy to use.

- File-based persistent data.

- Practical Python use.

Limitations:

- No GUI interface.

- No database storage.

- Not encrypted.
Class 12 Computer Science Project: Python-Based Student Record System

Conclusion

This Python project helped me understand file handling, functions, and data management. It improved my

programming logic and confidence in writing real-world scripts.


Class 12 Computer Science Project: Python-Based Student Record System

Bibliography

- CBSE NCERT Computer Science Book

- https://www.geeksforgeeks.org

- https://docs.python.org

- https://www.w3schools.com/python

You might also like