creating and match token between two dictionaries
===

I have dictionary name  wholeline() which go through the loop and print several lines for example one the many results looks like this:

COADREAD ZNF271 Missense_Mutation MAAA-AA-3947 Q14591 **A177T**

and another dictionary name wholelookup(),which i call in the loop would give similar result as to this:  **A177T**

Is there a way that i can match **'A177T'** and line that contains
COADREAD ZNF271 Missense_Mutation MAAA-AA-3947 Q14591 **A177T**, which there might be more than one line that contains A177T, but  each line are unique even when they contain A177T

on the if statement

here is my code for the dictionary:

>lookup = defaultdict(list) 

>wholelookup = defaultdict(list)

>wholeline = defaultdict(list)

>mydata = open('file.txt')

>for line in csv.reader(mydata, delimiter='\t'):
    code = re.match('[a-z](\d+)[a-z]', line[-1], re.I)

>    if code: 
 
       lookup[line[-2]].append(code.group(1))
        wholelookup[line[-2]].append(code.group(0))
        s=' '.join(line)
        wholeline[line[-2]].append(s)
</code>