0

My requirement is to merge the below two dictionaries in to single dictionaries and also preserve the duplicate keys

a = [ { 'enabled': True, 'health': '/favicon.ico', 'test': 'id'},
      { 'enabled': True, 'disableAccess': False, 'appliance': 'test.com',      'SSOEnabled': False}]

Desired output:

a = [ { 'enabled: True, 'health;: '/favicon.ico', 'test': 'id', 'enabled': True,  'disableAccess': False,  'appliance' : 'test.com', 'SSOEnabled': False}]

Can someone please help this requirement.

Christian Dean
  • 22,138
  • 7
  • 54
  • 87
user3156326
  • 81
  • 2
  • 7

0 Answers0