I have quite the problem here:
I want to check if the string/ list contains any of the items in the second list. but both these lists are nested and need to be filtered at their corresponding strings. See Below:
I hope i have informed everyone enough with this screenshot.
Yes this would work if the same numbers are in the same index, but i would like to check for each number in list 1 if it is also in list 2. This i would like to do for each nested list with only the other nested list.
If, in your example, the second list is 70,91,12,55 it would only output false.
liste1, liste2=IN
z=[]
for element in liste2:
i=liste2.index(element)
for el in liste2[i]:
if el in liste1[i]:
z.append(True)
else:
z.append(False)
OUT=z