DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
find common in lists
>>> a = [1, 2, 3, 4] >>> b = [2, 3, 4, 5] >>> c = [3, 4, 5, 6] >>> set(a) & set(b) & set(c) {3, 4}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#find
#common
#lists
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit