Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check all elements in list are in another list

check = all ( item in first_list for item in second_list )
# check = True - All elements from first_list are in second_list
# check = False - Not all elements from first_list are not in second_list
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #elements #list #list
ADD COMMENT
Topic
Name
9+3 =