Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ______ ______ ______ ______ __ __ ______ __ __ __ ______ __ __ ______
- # /\ ___\ /\ __ \ /\ == \ /\ __ \ /\ "-.\ \ /\ __ \ /\ \ / / /\ \ /\ == \ /\ \/\ \ /\ ___\
- # \ \ \____ \ \ \/\ \ \ \ __< \ \ \/\ \ \ \ \-. \ \ \ __ \ \ \ \'/ \ \ \ \ \ __< \ \ \_\ \ \ \___ \
- # \ \_____\ \ \_____\ \ \_\ \_\ \ \_____\ \ \_\\"\_\ \ \_\ \_\ \ \__| \ \_\ \ \_\ \_\ \ \_____\ \/\_____\
- # \/_____/ \/_____/ \/_/ /_/ \/_____/ \/_/ \/_/ \/_/\/_/ \/_/ \/_/ \/_/ /_/ \/_____/ \/_____/
- #
- # __ __ ______ __ __ ______ __ __ ______ ______ __ __
- # /\ \_\ \ /\ __ \ /\ "-./ \ /\ ___\ /\ \ _ \ \ /\ __ \ /\ == \ /\ \/ /
- # \ \ __ \ \ \ \/\ \ \ \ \-./\ \ \ \ __\ \ \ \/ ".\ \ \ \ \/\ \ \ \ __< \ \ _"-.
- # \ \_\ \_\ \ \_____\ \ \_\ \ \_\ \ \_____\ \ \__/".~\_\ \ \_____\ \ \_\ \_\ \ \_\ \_\
- # \/_/\/_/ \/_____/ \/_/ \/_/ \/_____/ \/_/ \/_/ \/_____/ \/_/ /_/ \/_/\/_/
- #
- class Group:
- def __init__(self, students, course, specialization):
- self.students = students
- self.course = course
- self.specialization = specialization
- class Student:
- def __init__(self, name, is_pay):
- self.name = name
- self.is_pay = is_pay
- class Specialization:
- def __init__(self, name, disciplines):
- self.name = name
- self.disciplines = disciplines
- class LectureHall:
- def __init__(self, num, group, lecturer):
- self.num = num
- self.group = group
- self.lecturer = lecturer
- class Discipline:
- def __init__(self, name, hours):
- self.name = name
- self.hours = hours
- class Lecturer:
- def __init__(self, name, discipline):
- self.name = name
- self.discipline = discipline
- Student_1 = Student("Алексеев Алексей Алексеевич", False)
- Student_2 = Student("Михайлов Михаил Михайлович", True)
- Student_3 = Student("Натальина Наталья Натальевна", False)
- Math = Discipline("Математика", 200)
- Computer_Science = Discipline("Информатика", 300)
- Physics = Discipline("Физика", 150)
- Specialization_1 = Specialization("Прикладная информатика", [Math, Computer_Science, Physics])
- Group_1 = Group([Student_1, Student_2, Student_3], 2, Specialization_1)
- Lecturer_1 = Lecturer("Петров Петр Петрович", Math)
- Lecturer_2 = Lecturer("Анастасьева Анастасия Анастасьевна", Physics)
- Lecturer_3 = Lecturer("Виктореьва Виктория Викторьевна", Computer_Science)
- LectureHall_1 = LectureHall(1, Group_1, Lecturer_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement