title: Python 3 comparison between two individual members of a list returning false in a search function
body: <p>I've been struggling to debug this function. The goal of the function is to search between two lists and print any common list items. I've traced and traced through this nested for loop with print statements and haven't been able to determine the issue. The loop seems to always return false on the print statement even when comparing two list items that are the same so I don't think the logic of the nested for loop is the issue.</p>
  <p>I'm relatively new to Python so I'm sure the answer is something dumb.</p>
  <pre><code>list_one = [banana, orange, apple]
  list_two = [monkey, dog, cat, apple]
  
  
  def search_lists(list_one, list_two):
      match = False
      
      for items in list_one:
          for data in list_two:
              if (data == items):
                  print(data)
                  match = True
                  print(&quot;match found&quot;)
                  
      return match
  
  search_lists(list_one, list_two)
  </code></pre>