title: How to Return True/False For Items in One List Found in Another List
body: <p>I am trying to work on a function that will take two lists, and create a new list as long as the first, and return True or False if each item in the list is found in the second list. I am also incorporating the use of numpy in the event I want to use a large list.</p>
  
  <p>I tried the below but I was unable to produce the result that I wanted. Any assistance is appreciated.</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  def a_is_in(a, b):
      list1 = np.array(a)
      list2 = np.array(b)
      if list1 in list2:
          return False
      else:
          return True
      return
  
  a = [3, 4, 8, 10, 11, 13]
  b = [3, 6, 7, 13]
  _is_in = a_is_in(a, b)
  print(_is_in)
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  def a_is_in(a, b):
      list1 = np.array(a)
      list2 = np.array(b)
      result = lambda list1, list2: any(i in list2 for i in list1)
      return result
  
  a = [3, 4, 8, 10, 11, 13]
  b = [3, 6, 7, 10, 13]
  _is_in = a_is_in(a, b)
  print(_is_in)
  </code></pre>
  
  <p>The returned result I am looking for is a list that looks like this:
  [True, False, False, True, False, True]</p>
  
  <p>Thank you for your time.</p>