title: map if condition and append to list
body: <p>Is there an easy way to code the following example by using map function? If not, how could be done by using list comprehension?</p>
  
  <pre><code>lst1=['a','b','c']
  lst2=['a','b','c','d']
  
  l=[]
  for iteml1 in lst1:
          if iteml1 in lst2:
              l.append((lst2.index(iteml1),iteml1))
  </code></pre>
  
  <p>l is a vector that contains the index of lst1 element in lst2 list and lst2 element. output:</p>
  
  <pre><code>l
  Out[1]: [(0,'a'),(1,'b'),(2,'c')]
  </code></pre>