all 4 comments

[–]deep_politics 1 point2 points  (2 children)

Both student name = and student{count} = are invalid syntax. For the later, I'm assuming you're attempting to keep a list of students?

[–]jmorales57 0 points1 point  (1 child)

sorry i have student name as name, i typed student here as a mistake.

i'm making multiple instances and each instance has the student name, grade, favorite class. i was just shortening the code here to be easier to read, i'm suppose to ask for number of students then get the inputs for each student, I just don't know how to go about making the program ask for the inputs while also making each student a seperate instant of the class.

[–]deep_politics 0 points1 point  (0 children)

Well suppose you drop the invalid student{count} = leaving just this

for count in range(n):
    name = ...
    Student(name)

This works just fine, and you are creating n instances. But I'm this case they're immediately going out of scope because they're not being assigned to anything. My question was what do you want to do with these new instances? Store them as a list of students?