title: Returning a list entry after a substring search using list of substrings
body: <p>This question slightly branches off of these two topics:</p>
  
  <p><a href="https://stackoverflow.com/questions/26577516/how-to-test-if-a-string-contains-one-of-the-substrings-in-a-list">How to test if a string contains one of the substrings in a list?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4843158/check-if-a-python-list-item-contains-a-string-inside-another-string/52014148#52014148">Check if a Python list item contains a string inside another string</a></p>
  
  <p>Because while it's very closely related, it doesn't really seem to give me the answer i need. I've tried to reverse engineer what I've been reading to no success. so here goes:</p>
  
  <p>what If I wanted to print out the member of the "matchers" list, how do I go about it? :/</p>
  
  <pre><code>myObjs = ['R_obj', 'objectLeft']
  sideNames = ['L_','R_', '_L', '_R', 'Right', 'Left', 'right', 'left']
  
  for i in myObjs:
      xx = [side in i for side in sideNames]
      if any (xx):
          print "something is found in " + i
  
      # ================= other attempts at printing:  =================
      #   print [side in i for side in sideNames] &lt;-- gives list of booleans.
      #   print xx
      #   print str(sideNames[side]) + "found is in " + i
      #   print sideNames.side
      #   print side
      # ================= other attempts at printing:  =================
  </code></pre>
  
  <p>Basically I'm trying to print the sideNames <strong><em>list member</em></strong> in place of "something", but my different attempts have all been giving me wrong syntaxes :/</p>
  
  <p>PS: I have a feeling that im using [] and () incorrectly</p>