Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
2+1 =