I am just starting learning Django and Python... It's been 2 months. I'm doing one of my own personal projects and i have a section where i am querying a webservice and passing back the result to the templates.
The webservice is returning a dictionary like below.
x = {'ID':[{
'key-1': 'First Name',
'key-2': 'John'
},{
'key-1': 'Last Name',
'key-2': 'Doe'
},{
'key-1': 'Age',
'key-2': '25'
}]
I am expecting to iterate the list inside the dictionary and create my own dictionary like the below:
d = {'First Name': 'John', 'Last Name': 'Doe', 'Age': '25' }
I am not sure what am i missing, can someone please help me with learning how to build my dictionary?