title: Search for Multiple Elements in Same Sublist of List
body: <p>I am trying to get Python to search my list for a sublist which contains both of my search terms, but instead I get any sublist which contains one or more of the searches. Here is my code:</p>
  
  <pre><code>search1 = 4
  search2 = 3
  data = [[4,3],[4,7], [6,3], [9,2]]
  found = False
  for sublist in data:
      if search1 in sublist:
          print("there", sublist)
          if search2 in sublist:
              print("there", sublist)
              found = True
  
      if(found==False):
          print("not there")
          print(data) 
  
  if(found==False):
      print("not there")
      print(data)
  </code></pre>
  
  <p>The output I get for this is:</p>
  
  <pre><code>there [4,3] #I only want this sublist, and only once. 
  there [4,3]
  there [6,3] #I don't want this sublist. 
  </code></pre>
  
  <p>Cheers! 5813</p>