Luckily I tried it before saying no, that's
not how "in" works:
True
False
Is there a reason for the inconsistency? I would
have thought "in" would check for elements of a
sequence, regardless of what sort of sequence it was...
--
David C. Ullrich
not how "in" works:
>>'ab' in 'abc'
>>[1,2] in [1,2,3]
Is there a reason for the inconsistency? I would
have thought "in" would check for elements of a
sequence, regardless of what sort of sequence it was...
--
David C. Ullrich
Comment