Skip to content

JoshuaPrashanth/Student-Database-Management-System-Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง‘โ€๐ŸŽ“ Student Database Management System (Python)

A simple Student Database Management System written in Python, using the Pandas library to organize and export student data to CUSTOM PATH.
This program runs entirely in the terminal and allows users to manage student records interactively.


๐Ÿ“‹ Features

  • โž• Add new students to the database
  • โž– Remove students from the database
  • ๐Ÿ‘€ View list of all students
  • ๐Ÿ“„ View individual student details
  • ๐Ÿงฎ Calculate and display grades based on marks
  • ๐Ÿ“Š Show all student details in tabular form
  • ๐Ÿ“‚ Export student records to an Excel spreadsheet to CUSTOM PATH
  • ๐Ÿงน Clear the entire database
  • ๐Ÿšช Exit safely

๐Ÿง  How It Works

The system uses a Student class to store individual student details (name, roll number, and marks).
All students are kept in Python lists (student_list and student_name_list) while the program runs.
A helper function get_data() converts this in-memory data into a Pandas DataFrame for display and exporting.


๐Ÿ—๏ธ Code Overview

๐Ÿงพ Class: Student

class Student:
    def __init__(self, name, roll_number, marks):
        self.name = name
        self.roll_number = roll_number
        self.marks = marks

    def display(self):
        print(f"\n----Student details----\n"
              f"Name : {self.name}\n"
              f"Roll Number : {self.roll_number}\n"
              f"Marks : {self.marks}")

    def calculate_grade(self):
        if self.marks >= 90:
            print("Grade : A")
        elif self.marks >= 75:
            print("Grade : B")
        elif self.marks >= 50:
            print("Grade : C")
        else:
            print("Grade : F")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages