I'm trying to find the largest value for a variable, where the variable must be contained in one of the list values.

My code is the following and seems to work fine, however I encounter a problem. Basically the code is overwriting the values with the last value found instead of keeping the highest one. 

```
d_list = ['a','b','c']
for value in values:
    name = value['name']
    category = value['category']
    rank = value['rank']
    largest = None
    for x in d_list:
        if x in name:
           if largest is None or rank > largest:
              largest = rank
              info[x + ' ' + 'Rank'] = largest                                                                                                                        

```

Any suggestions on how to keep just the highest score for each x? Thank you