Пример #1
0
def get_info_student(screen):
    number_student = get_number_student(screen)
    students = []
    for i in range(number_student):
        std = Student()
        std.input(screen)
        students += [std]
    return students
Пример #2
0
def get_info_student(screen):
    number_student = get_number_student(screen)
    students = []
    student_file = open("student.txt", "a")
    student_file.write("Student info:")
    for i in range(number_student):
        std = Student()
        std.input(screen)
        students += [std]
        student_file.write("Student info")
    student_file.close()
    return students