I want to join two lists which are in the following form:
a=[[[1,2,3],[4,5,6],[7,8,9]],[[11,21,31],[14,15,16],[17,18,19]],[[41,42,43],[48,45,46],[76,86,96]]]
b=[[55,66,99],[77,88,44],[100,101,100]]
Such that the result is:
result =[[[55,1,2,3],[66,4,5,6],[99,7,8,9]],[[77,11,21,31],[88,14,15,16],[44,17,18,19]],[[100,41,42,43],[101,48,45,46],[100,76,86,96]]]
I tried doing this, but it does not work
for i in range(len(a)):
for j in range(len(a[i])):
a[i][j].insert(0, b[i][j])
a