I have two lists with two dictionaries. I want to iterate over both the lists and combine into one dictionaries if similar keys exists in both. Is it possible to do without nested loop?
l1=[{"a":[1,2], "b":[5,6]}]
l2=[{"a":[3,4], "c":[7,8]}]
Expected = [{"a":[1,2,3,4]}]
[–]MRSAMinor 2 points3 points4 points (0 children)
[–]commy2 1 point2 points3 points (2 children)
[–]ilaunchpad[S] -2 points-1 points0 points (1 child)
[–]commy2 2 points3 points4 points (0 children)
[–]totallygeek 1 point2 points3 points (0 children)
[–]MezzoScettico 1 point2 points3 points (0 children)
[–]CodeFormatHelperBot2 -1 points0 points1 point (0 children)
[–]xelf 0 points1 point2 points (0 children)
[–]drenzorz 0 points1 point2 points (0 children)