Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check array exists

array = [1,2,3,4]
exists_2 = 2 in array
print(exists_2) # True
exists_5 = 5 in array
print(exists_5) # False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #array #exists
ADD COMMENT
Topic
Name
4+7 =