I have two lists with nested dictionaries:
list1 = [{u'Key': u'lm_app', u'Value': u'lm_app'}, {u'Key': u'Name', u'Value': u'new Name'}, {u'Key': u'lm_sbu', u'Value': u'lm_sbu'}, {u'Key': u'lm_app_env', u'Value': u'lm_app_env'}]
list 2 = [{u'Key': 'lm_sbu', u'Value': 'lm_sbu'}, {u'Key': 'Name', u'Value': 'test'}]
How would I check if a key within list 1 exists within list 2?
With regards to this example, the keys 'lm_sbu' and 'Name' both exist in list 1 and in list 2. However, the key 'lm_app' and 'lm_app_env' exist in list 1 but not in list 2.
Once I find out the differences, I want to append the differences in a separate list.
Thanks