I have two lists with nested sublists in each of them, and I want to loop over the nested lists and take each item together with it's corresponding item in list2 , below similar example which describe my problem :
lst1 = [ [1 ,2 ,3] [3 ,4 ,5, 5] [7, 8] [9, 10, 2, 3, 7] ]
lst2 = [ ['a', 'b', 'c'] ['d', 'e', 'f', 'g'] [h, a] [z, w, x, y, k] ]
results:
lst3 = [ [1 + 'a', 2 + 'b', 3 + 'c'] [3 + 'd', 4 + 'e', 5 + 'f', 5 + 'g'] [7 + 'h', 8 + 'a'] [9 + 'z', 10 + 'w', 2 + 'x', 3 + 'y', 7 + 'k'] ]
Thanks
I tried to use zip function but I'm stuck how to loop over the nested list