Python Project-school - Samiya
Python Project-school - Samiya
PROJECT ON :
1
CERTIFICATE
-----------------------------------
Teacher’s Signature
----------------------------------- ----------------------------------
Examiner’s Signature Principal’s Signature
2
ACKNOWLEDGEMENT
I
undertook this Project work, as the part of my XII-
Computer Science Practices course. I had tried to apply
best of my knowledge and experience, gained during the
study and class work experience. However, developing
software system is generally a quite complex and time-
consuming process. It requires a systematic study, insight
vision and professional approach during the design and
development. Moreover, the developer always feels the need,
the help and good wishes of the people near you, who have
considerable experience and idea.
Class XII
3
C O N T E N T S
1. Introduction-----------------------------------------------------------------5
3. System Implementation-------------------------------------------------8
4. Coding--------------------- --------------------------------------9
6. References ----------------------------------------------------------------12
4
1. Introduction
proper way.
*****
7
3. System Implementation
CODING
8
class Student:
def __init__(self, student_id, name):
self.student_id = student_id
self.name = name
self.courses = []
class SchoolManagementSystem:
def __init__(self):
self.students = {}
self.teachers = {}
10
# Menu system
def menu(self):
while True:
print("\n--- School Management System Menu ---")
print("1. Add a Student")
print("2. Add a Teacher")
print("3. View All Students")
print("4. View All Teachers")
print("5. Enroll a Student in a Course")
print("6. View All Enrollments")
print("7. Exit")
if choice == "1":
self.add_student()
elif choice == "2":
self.add_teacher()
elif choice == "3":
self.view_students()
elif choice == "4":
self.view_teachers()
elif choice == "5":
self.enroll_student_in_course()
elif choice == "6":
self.view_enrollments()
elif choice == "7":
print("Exiting School Management System. Goodbye!")
break
else:
print("Invalid choice. Please try again.")
11
REFERENCES :
Computer Science Book of Class – XII by Sumita
Arora
NCERT Book of Class XII
Various websites.
*****THANK YOU*****
12