title: How to check if a list is empty in Python?
body: <p>The API I'm working with can return empty <code>[]</code> lists.</p>
  
  <p>The following conditional statements aren't working as expected:</p>
  
  <pre><code>if myList is not None: #not working
      pass
  
  if myList is not []: #not working
      pass
  </code></pre>
  
  <p>What will work?</p>