I am trying to merge the following python dictionaries as follow:
dict1= {\'paul\':100, \'john\':80, \'ted\':34, \'herve\':10} dict2 = {\'paul\':\'a\', \'joh
output = {k: [dict1[k], dict2.get(k)] for k in dict1} output.update({k: [None, dict2[k]] for k in dict2 if k not in dict1})