aScore = ... # value to be added if nScores < MAX_SCORES: score[nScores] = aScore nScores += 1 aName = ... # value to be added if (nNames < MAX_NAMES) name[nNames] = aName nNames += 1 aStudent = Student() aStudent.name = ... ... # assign other fields if (nStudents < MAX_STUDENTS) student[nStudents] = aStudent nStudents += 1