title: A order of OR operators in variable
body: <p>My aim is to create a conditional where: if one of the strings is in the list it gets printed. I tried the following and stuck with this:</p>
  <p>Why the output of this code:</p>
  <pre class="lang-py prettyprint-override"><code>strings = ['sdksudfhdsf', 'other', 'sdfsdfwirfkdf', 'another', 'sqdiusaqwe']
  substring = 'some_string' or 'other' or 'another' or 'different'
  
  strings_with_substring = [string for string in strings if substring in string]
  
  print(strings_with_substring)
  
  </code></pre>
  <p>is an empty list</p>
  <p>but the above returns the proper values:</p>
  <pre class="lang-py prettyprint-override"><code>strings = ['sdksudfhdsf', 'other', 'sdfsdfwirfkdf', 'another', 'sqdiusaqwe']
  substring = 'other' or 'another' or 'different' or 'some_string'
  
  strings_with_substring = [string for string in strings if substring in string]
  
  print(strings_with_substring)
  
  </code></pre>
  <p>output:</p>
  <pre class="lang-py prettyprint-override"><code>['other', 'another']
  </code></pre>
  <p>Please note that the only thing which I did is to move a 'some_string' to the end of a variable 'substring'</p>