Skip to content

Tag: dictionary

Turning a list into a dictionary adding headers

I’d like to turn the following list in a dictionary: I’d like to add the following headers. Each element of the list needs to have its own header. This is my code: And the following is my output. I obtain the dictionary only for the first element of the list and I can’t understand why. Answe…