How to test multiple variables for equality against a single value?
You misunderstand how boolean expressions work; they don’t work like an English sentence and guess that you are talking about the same comparison for all names here. You are looking for: if x == 1 or y == 1 or z == 1: x and y are otherwise evaluated on their own (False if 0, … Read more