title: how to get tuples from lists using list comprehension in python
body: <p>I have two lists and want to merges them into one list of <code>tuples</code>. I want to do it with <code>list comprehension</code>, I can get it working using <code>map</code>. but would be nice to know how list comprehension here will work.
  code here</p>
  
  <pre><code>&gt;&gt;&gt; lst =  [1,2,3,4,5]
  &gt;&gt;&gt; lst2 = [6,7,8,9,10]
  &gt;&gt;&gt; tup = map(None,lst,lst2) # works fine
  &gt;&gt;&gt; tup
  [(1, 6), (2, 7), (3, 8), (4, 9), (5, 10)]
  &gt;&gt;&gt; l3 = [lst, lst2]
  &gt;&gt;&gt; l3
  [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]
  &gt;&gt;&gt; zip(*l3) # works fine
  [(1, 6), (2, 7), (3, 8), (4, 9), (5, 10)]
  
  &gt;&gt;&gt; [(i,j) for i in lst and for j in lst2] # does not work
    File "&lt;stdin&gt;", line 1
      [(i,j) for i in lst and for j in lst2]
                                ^
  SyntaxError: invalid syntax
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I have written comments where it works and where it does not. How can a two <code>for-loop</code> be coupled in <code>list comprehension</code></p>