title: How to check if list contains any item from list in python
body: <p>i am trying to check and print if following list contains specific string or substring using Python,</p>
  <p>This is my input</p>
  <pre><code>[
    [
      &quot;SessionTimeOut: Request reach to it's max time. {'VwasKXznXVVzYU6iAAAB': None} were registered but ['192.168.2.2', '192.168.2.3'] were expected.&quot;
    ],
    [
      &quot;CommonException: element with 'id' was not found&quot;
    ],
    [
      &quot;JenkisException: Element missing because service was down&quot;
    ]
  ]
  </code></pre>
  <p>Now i want to get the output string if it contains</p>
  <blockquote>
  <p>&quot;SessionTimeOut: Request reach to it's max time.</p>
  </blockquote>
  <p>I am able to check it this way</p>
  <pre><code>print('SessionTimeOut: Request reach to it's max time.' in str(response['data']))
  </code></pre>
  <p>It returns <code>True</code> but i also want that complete string
  I am able to print that as <code>response['data'][0][0]</code> this is not a good idea.</p>
  <p>I want to printout the complete string dynamically which contains that text, How can i achieve this.
  Thank you.</p>