title: Simplifying an 'if' statement with bool()
body: <p>I have some code that causes Pylint to complain:</p>
  <blockquote>
  <p>The if statement can be replaced with 'var = bool(test)' (simplifiable-if-statement)`</p>
  </blockquote>
  <p>The code (with obfuscated variable names) is below.</p>
  <pre><code>A = True
  B = 1
  C = [1]
  D = False
  E = False
  
  if A and B in C:
      D = True
  else:
      E = True
  
  print(D, E)
  </code></pre>
  <p>How can this be simplified so that Pylint does not throw any errors?</p>
  <p>I don't quite understand how <code>bool()</code> can be used for this. I know it converts any value to a Boolean value, but I don't know how it can be applied here.</p>