Need help with getting Key, Value out of dicts in lists

2017-04-08 Thread Kenton Brede
This is an example of the data I'm working with. The key/value pairs may come in any order. There are some keys like the 'Resource_group_id' key and the 'Name' key which will always be present, but other lists may have unique keys. alist = [[{u'Value': 'shibboleth-prd', u'Key': 'Name'}, {u'Value'

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Kenton Brede
], ] I have an ugly solution of 'for loops' and 'if statements' that works, which uses a different path to get to the information. I was just hoping to be more direct by matching the 'Value' of 'Key: Resource_group_id' and pull back the 'Value&