DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit