I have two variables, a
and b
, and I have some combinations:
a
is blank andb
isNone
a
isNone
andb
is blanka
is blank andb
is blanka
isNone
andb
isNone
and I need to match all the four conditions in one line. I am trying to do with:
if ((a, b) in ['', None, '', None]))
However, this does not produce the desired result.