title: python: if not this and not that
body: <p>I want to write a condition which checks if both variables are False but I'm not sure if what I'm using is correct:</p>
  
  <pre><code>if not var1 and not var2: 
       #do something 
  </code></pre>
  
  <p>or should it be:</p>
  
  <pre><code>if not (var1 and var2):
      #do something
  </code></pre>