title: Python: Check if element is not in two lists?
body: <p>I need to check if an element is not in two lists. I currently have:</p>
  
  <pre><code>if ele not in lista:
      if ele not in listb:
          do stuff
  </code></pre>
  
  <p>Using the following code did not work. Is there a more efficient way to accomplish the above in python?</p>
  
  <pre><code>if ele not in lista and listb:
      do stuff
  </code></pre>