title: how to make every variable in list unnested? python
body: <pre><code>import itertools
  def unnest_list(listone,listtwo):
   last=[listone[x] for x in range(len(listone)) if x%2==1]
   last.append([listtwo[x] for x in range(len(listtwo)) if x%2==0])
   return list(itertools.chain(*last))
  print(something([3, 6, 9, 12, 15, 18, 21], [4, 8, 12, 16, 20, 24, 28]))
  </code></pre>
  <p>trying to make the list unnested, at the end of the func,
  last=[6, 12, 18, [4, 12, 20, 28]], after using itertools,chain(*last) it gives an error: &quot;TypeError: 'int' object is not iterable&quot;</p>