The reason for the above is of course that x contains the value 3, but x does not have two 3's. the difference is important when rolling multiple dice, playing cards, etc. Note that there is an optional argument ordered which tests whether the elements of y appear in x in the order in which they are appear in y. the consequences are