class Student:
    idCounter = 0

def __init__(self):
    self.gpa = 0
self.record = {}
Student.idCounter += 1
self.name = 'Student {0}'.format(Student.idCounter)
classRoster = []
for number in range(25):
    newStudent = Student()
classRoster.append(newStudent)
print(newStudent.name)
Переменная-счетчик для класса