I have a dictionary in which it contains URLs as key and Open Ports of their as value. i.e. dict200 = {}
dict200 = {}
{'http://REDACTED1.com': [21, 22, 80, 443, 3306], 'http://www.REDACTED2.com': [80, 443]}
Now I have another dictionary with different content i.e. newerdict = {}
newerdict = {}
newerdict = {'Drupal , ': '7', 'Apache , ': '2.4.34'}
Now Please assume that the Apache server is being used in the redacted1, and Drupal is being used on redacted2.
Now What I want is, something like this:-
{'http://redacted1.com': [{'apache': '2.4.34' }], 'http://redacted2.com': [{'Drupal': '7'}]}
Hope this time I explained better. Looking for any reply.
EDIT:-
Somehow I am able to replace the positions of values, but now the problem I am facing is, I can't access the properties of dict within a dict.
Here is the full output,
http://redacted1.com : [{'\tApache (web-servers), ': '2.4.34'}]
http://redacted2.com : [{'\tDrupal (cms), ': '7'}]
But how could I print
Apache = 2.4.34