title: Find index of string in list based on part of the string
body: <p>I have a list:</p>
  
  <pre><code>foolist = ['123-asd', '234-asd', '345-asd']
  </code></pre>
  
  <p>I want to find the index of the string that contains '234'. At the moment I have this:</p>
  
  <pre><code>boollist = ['234' in i for i in foolist]
  </code></pre>
  
  <p>which would produce a list of True and Falses for each index for <code>foolist</code>. </p>
  
  <p>Then to find the index, <code>[print(i) for i,j in enumerate(foolist) if j==True]</code></p>
  
  <p>This seems abit unecessary, does anyone have a more eloquent method of finding the index of a string in list based on a part of that string</p>