I would like to convert the data into a dictionary to work with. The data looks like keys and values in a dictionary, but they are combined into a single element.
here's a sample of the data
['"acetic anydride": "[CX3](=[OX1])[OX2][CX3](=[OX1])",\n',
'"acetylenic carbon": "[$([CX2]#C)]",\n',
'"acyl bromide": "[CX3](=[OX1])[Br]",\n',
'"acyl chloride": "[CX3](=[OX1])[Cl]",\n',
'"acyl fluoride": "[CX3](=[OX1])[F]",\n',
'"acyl iodide": "[CX3](=[OX1])[I]",\n',
'"aldehyde": "[CX3H1](=O)[#6]",\n',
'"alkane": "[CX4]",\n',
'"allenic carbon": "[$([CX2](=C)=C)]",\n',
'"amide": "[NX3][CX3](=[OX1])[#6]",\n',
'"amidium": "[NX3][CX3]=[NX3+]",\n',
'"amino acid": "[$([NX3H2,NX4H3+]),$([NX3H](C)(C))][CX4H]([*])[CX3](=[OX1])[OX2H,OX1-,N]",\n',
'"azide": "[$(-[NX2-]-[NX2+]#[NX1]),$(-[NX2]=[NX2+]=[NX1-])]",\n',
'"azo nitrogen": "[NX2]=N",\n',
'"azole": "[$([nr5]:[nr5,or5,sr5]),$([nr5]:[cr5]:[nr5,or5,sr5])]",\n',
'"azoxy nitrogen": "[$([NX2]=[NX3+]([O-])[#6]),$([NX2]=[NX3+0](=[O])[#6])]",\n',
'"diazene": "[NX2]=[NX2]",\n',
'"diazo nitrogen": "[$([#6]=[N+]=[N-]),$([#6-]-[N+]#[N])]",\n',
'"bromine": "[Br]",\n']
I have tried removing the : in the data using the replace command, but it didn't work.
i=0
for line in lines:
a = lines[i]
a.replace(":", "")
lines[i] = a
i+=1