Snippets Collections
# Python program to illustrate 
# not 'in' operator 
x = 24
y = 20
list = [10, 20, 30, 40, 50 ]; 

if ( x not in list ): 
	print("x is NOT present in given list") 
else: 
	print("x is present in given list") 

if ( y in list ): 
	print("y is present in given list") 
else: 
	print("y is NOT present in given list") 

star

Fri Oct 30 2020 20:24:21 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/python-membership-identity-operators-not-not/

#python #is #not #in

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension