Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

python check list contains another list

>>> items = set([-1, 0, 1, 2])
>>> set([1, 2]).issubset(items)
True
>>> set([1, 3]).issubset(items)
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #list #list
ADD COMMENT
Topic
Name
5+1 =