Basically this is within a class which appends objects of another class to list self. There are 200 objects in list self. So basically if I call self[1] I will get ['John',['Alex', 'Rob']. Basically 'john' refers to self.firstname and the other names refer to there group members. For example the below will print the firstnames and groupmembers of each object for all 200 objects

```
  for line in self:
    print line.firstname

for line in self:
print line.groupmembers

```

Now I have to create something that goes through all the names and checks the names. So basically if John has Alex and Rob as members then there has to be another object with a first name Alex and another object with a firstname Rob. So say there is no object with firstname Alex I want to print 'mismatch'. This is what I have so far but its not doing what its intended to do. 

```
    def name(self):
            firstnames = []
            for item in self:
                firstnames.append(item.firstname)
            for item1 in self:
                for i in item1.groupmembers:
                    if i not in hello:
                        print 'mismatch'

```