Feb-07-2017, 07:03 AM
First of all, please use python code tags around your code
as to your question - non-empty list always evaluates to True, so both your if conditions are always true.
as to your question - non-empty list always evaluates to True, so both your if conditions are always true.
if x in n: # do something here elif x in y: #do something else here