Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python check if two lists intersect
John Wu
Programming language:
Python
2021-07-01 17:57:24
0
Q:
python check if two lists intersect
semicolon
Code:
Python
2021-06-17 13:43:34
a = [1, 2, 3] b = [3, 4, 5] bool(set(a) & set(b))
0
Tags
python
list
int
check
two
Related
intersection of lists in python
how to subtract 2 lists in python
python how to check if all elements in list are the same
how to check if a list is a subset of another list
python list INTERSECTION
how to check if there are duplicates in a list python
python common elements in two arrays
python check if two sets intersect
how to subtract two matrices in python
can we return two list in python
intersection between two sets python
find number of common element in two python array
overlap between two lists
list intersection python
how to check element of 2 large lists python
python intersection of two lists
unique element intersection python
intersection of two lists python
New to Communities?
Join the community