Пример #1
0
def run():
    students = data_generator.generate_students(number_of_students=45)
    school = School(name="Mała szkoła", students=[])
    school.students = students
    print(school)

    student_avg = GradeCalculator.calculate_student_avg([])
Пример #2
0
def run_example():
    students = data_generator.generate_students(number_of_students=250)
    # school = School(name="Mała szkoła", students=[])
    # school.students = students

    # school = School(name="Mała szkoła", students=data_generator.generate_students())

    student_avg = GradeCalculator.calculate_student_avg([])
Пример #3
0
 def grades_avg(self):
     return GradeCalculator.calculate_student_avg(self._final_grades)
Пример #4
0
 def check_promotion(self):
     return GradeCalculator.check_student_promotion(self._final_grades)