Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to compare two lists element by element in python and return matched element

>>> [i for i, j in zip(a, b) if i == j]
[5]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #compare #lists #element #element #python #return #matched #element
ADD COMMENT
Topic
Name
6+3 =