in
not in

in operator
Returns True if the list contains the object.

innotin1's photo

not in operator
Returns True if the list does not contain the object.

innotin2's photo

A simple program using not in.

innotin3's photo

innotin4's photo