foo = 10 if 10 == foo: pass
foo = 10 if foo == 10: pass
Used when the constant is placed on the left side of a comparison. It is usually clearer in intent to place it in the right hand side of the comparison.