+3 votes
in Class 12 by kratos

What does “not in” do?

1 Answer

+6 votes
by kratos
 
Best answer

“not in” is a membership operator. It evaluates to true if it does not finds a variable/string in the specified sequence. Otherwise it evaluates to false,

(eg) * = “Hello World”

if “***” not in :

print “False”

will print False.

...