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
Source by kite.com #
 
PREVIOUS NEXT
Tagged: #python #check #list
ADD COMMENT
Topic
Name
9+8 =