[Solved] How to create a dict in python from two List of Lists [closed]
[ad_1] You could do it as follows – lists1 = [ [‘a’,’b’], [‘c’,’d’], [‘e’,’f’] ] lists2 = [ [1,2], [3,4], [5,6] ] dictionary = {} # Loops through inner lists of both lists at same time – l1 for lists1 and l2 for lists2 for l1,l2 in zip(lists1,lists2): # Loops through the elements of inner … Read more