I was wondering if it's possible to loop a list of values
Example:
lst = ['RH', 'CD241', 'C2', 'SCZD9', 'RG59L', 'WNT3A']
through the values of a dictionary
Example:
ref_dict = {
'': [''], '6005': ['RH50A', 'CD241', 'SLC42A1'], '603': [''],
'6000': [''], '8787': ['PERRS', 'RGS9L', 'MGC26458'],
'41': ['ACCN2', 'BNaC2', 'hBNaC2'], '8490': [''],
'9628': [''], '5999': ['SCZD9']
}
To check if the individual value in the list has the value in the dictionary, if it does have the value, then it would return me the key in which the value is in.
Example :
lst value CD241 is in the dictionary '6005': ['RH50A, CD241, SLC42A1']
, it would return me key "6005"
.