Skip to content

convert a list of pairs with a fixed suffix to a dictionary

I have a big list like the below one: and I want to make a dictionary of it like this: This means there are two types of elements: regular simple ones and the other ones with a fixed suffix that I want as keys or values. Answer You can just “ignore” the suffix elements and add them manually as val…