title: Simplify if statement python
body: <p>Is there any Pythonic or compact way to  write the following <code>if</code> statement:</p>
  
  <pre><code>if head is None and tail is None:
      print("Test")
  </code></pre>
  
  <p>Something like:</p>
  
  <pre><code>if (head and tail) is None: 
  </code></pre>