Hi All, how to - Compare the elements of 2 Lists for similar elements?
Given the two lists below.
list1 = {1,3,4,7,10,12,15,17,19,24,26,29,32,35};
list2 ={2,5,6,7,8,9,11,12,14,19,25,27,29,30};
I trying to setup the coding that compares or matches each element in list1 with each element in list2 & then providing an output of similar elements in each of the lists.
(i) The idea answer would be Answer = {7,12,19,29}
(ii) Additionally it would great if I had the positions of all of these elements {7,12,19,29} in list1 & list2.
Many thanks for your help & attention. Best regards, Lea.