I am new in python and have a simple question… In my project there is an "student" class, and there are some student object (for example 100):
class students:
def __init__(self, name):
self.name = name
Some of these students are special (for example five), now I want to define three variables z0, z1, z2 for each of these five special students:
for c in self.candidate_student:
z0
z1
z2
After this part, I want to call each candidate student variable by name, like this:
student.name.z0
student.name.z1
student.name.z2
Can anyone explain how I can achieve this?
namea class as well.candidate_studentattribute ofstudents? How do you recognize which students are "special"? Do they still have all of the attributes of a typical student?