Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list INTERSECTION

a = ['apple', 'banana', 'pear']
b = ['fridge', 'stove', 'banana']

a & b == ['banana'] #True
 
PREVIOUS NEXT
Tagged: #python #list #INTERSECTION
ADD COMMENT
Topic
Name
3+7 =