DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python check if two sets intersect
a = [1, 2, 3] b = [3, 4, 5] bool(set(a) & set(b))
PREVIOUS
NEXT
Tagged:
#python
#check
#sets
#intersect
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit