I was doing some tests, when I tried:
len(pin) == (4 or 6)
Half of the tests failed.
However with :
(len(pin) == 4 or len(pin) == 6)
All the tests were passed.
I am unable to understand the difference that is between these two.
pin is usually a number like 1234
or 12345
.