Deleting instances of classes from a list
So I have a class 'studentlist' and another class 'student' which goes into a list in studentlist.
I then have a script that creates a new instance of studentlist and creates instances of 'student' that go into studentlist's' list.
However when I try to manipulate the list such as writing
to remove the first instance of the student class in studentlist, the compiler returns an error. what is going wrong exactly? i have obviously used this type of code many times before to remove certain integers from lists, according to their index number, but when you have a list of class instances it doesn't work. Can anyone tell me why?