title: Merging and mixing two list of list of dictionary in python
body: <p>I have a list of list of dictionaries :</p>
  <pre><code>liste = [[{&quot;template_id&quot;: 32, &quot;template_name&quot; : &quot;test1&quot;}, {&quot;template_id&quot;: 33, &quot;template_name&quot; : &quot;test2&quot;}],[{&quot;template_id&quot;: 34, &quot;template_name&quot; : &quot;test3&quot;}, {&quot;template_id&quot;: 35, &quot;template_name&quot; : &quot;test4&quot;},{&quot;template_id&quot;: 36, &quot;template_name&quot; : &quot;test5&quot;}]]
  </code></pre>
  <p>I want to merge them like this :</p>
  <pre><code>[{&quot;template_id&quot;: 32, &quot;template_name&quot; : &quot;test1&quot;},{&quot;template_id&quot;: 34, &quot;template_name&quot; : &quot;test3&quot;}, {&quot;template_id&quot;: 33, &quot;template_name&quot; : &quot;test2&quot;},{&quot;template_id&quot;: 35, &quot;template_name&quot; : &quot;test4&quot;},{&quot;template_id&quot;: 36, &quot;template_name&quot; : &quot;test5&quot;}]
  </code></pre>
  <p>I have tried to do it like this but it does not work properly since i'm not a Python expert :</p>
  <pre><code>for j in range(len(liste)):
      for i in range(len(liste[j])+1):
              try :
                  print(f&quot;F={f},j={j}, i={i} &quot;)
                  optimized_list.append(liste[i][j])
                  #print(liste[i][j]['template_name'])
              except IndexError:
                  pass
  </code></pre>
  <p>EDIT :</p>
  <p>To be more clear the output i want is the following :</p>
  <pre><code>[{&quot;template_id&quot;: 32, &quot;template_name&quot; : &quot;test1&quot;},
   {&quot;template_id&quot;: 34, &quot;template_name&quot; : &quot;test3&quot;},
   {&quot;template_id&quot;: 33, &quot;template_name&quot; : &quot;test2&quot;},
   {&quot;template_id&quot;: 35, &quot;template_name&quot; : &quot;test4&quot;},
   {&quot;template_id&quot;: 36, &quot;template_name&quot; : &quot;test5&quot;}]
  </code></pre>