Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if list contains value

if value in list:
  #do stuff

#Also to check if it doesn't contain
if value not in list:
  #do stuff
 
PREVIOUS NEXT
Tagged: #python #check #list
ADD COMMENT
Topic
Name
7+2 =