I have a dictionary with repeated keys but different values for those keys and i want to pull all values for a specific key. Here is the abbreviated version of what I mean:
x_table = {'A':'GCT','A':'GCC','A':'GCA','A':'GCG'}
AA_list = [{'A'}]
for aa in AA_list:
if aa in x_table:
print x_table[aa]
For some reason it will only pull one of the values from x_table.
Thanks for the help.