I have the following code:
if <one-string> in x and <another-string> in x:
<do something>
I hate the duplication of comparing two values to the same variable in two separate steps. But I can't iterate over the strings because I still end up with two booleans that must then be compared for a final boolean value. Is there a pythonic way of doing this?