What is better to use:
if var in X: #do_whatever elif (var in Y): #do_whatever2
or:
if var in X: #do_whatever i
If var can't be in both X and Y, then you should use elif. This way, if var in X is true, you don't need to pointlessly eval var in Y.
var
X
Y
elif
var in X
true
var in Y