Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Determine if a subset is in a list

>>> all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b'])
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Determine #subset #list
ADD COMMENT
Topic
Name
5+3 =