Using the AND and NOT Operator in Python [duplicate]
You should write : “&” is the bit wise operator and does not suit for boolean operations. The equivalent of “&&” is “and” in Python. A shorter way to check what you want is to use the “in” operator : You can check if anything is part of a an iterable with “in”, it works … Read more