-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamSystemData.py
More file actions
29 lines (22 loc) · 869 Bytes
/
examSystemData.py
File metadata and controls
29 lines (22 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Question:
def __init__(self):
self.question_info = {'Difficulity': '', 'Topic': '', 'sub_topic': '', 'Code': '', 'Format': ''}
def print_question_info(self):
for k, v in self.question_info.items():
print(f'{k} : {v}')
class Exam:
def __init__(self, exam_date='', semester=''):
self.exam_date = exam_date
self.exam_semester = semester
self.question_list = []
class Course:
def __init__(self, course_name='', lecturer_name='', year_of_course=''):
self.course_name = course_name
self.lecturer_name = lecturer_name
self.year_of_course = year_of_course
self.exam = Exam()
class Department:
def __init__(self, dep_name='', coordinator_name=''):
self.dep_name = dep_name
self.coordinator_name = coordinator_name
self.course = Course()