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