Each value in sheet 1 and 2 have characteristics that can take on different numeric values. I want to check if there is an object from sheet 2 with specific characteristics in sheet1
l1= [[a,b,c,x,y,z],[a,b,c,x,y,z],[a,b,c,x,y,z],...] l2= [z,b,c] while True: if ... break In the if condition, I need to check if there is an object from the second sheet in the first sheet with specific values of the parameters z and b, the value of c does not matter in the search. How can this be done?
Update
L1 is a sheet consisting of cards and each variable is a cocnret characteristic of the inherent map, for example, the beginning of the path (z), the end of the path (b), the number of cards of this (c) type, etc.
L2 is a sheet that is updated and each time this sheet is assigned one card with only 3 of 6 characteristics: beginning, end and number.
Based on the first two variables at the beginning (z) and end (b), you need to check if there is a card with the same parameters in the stack of cards. Count does not matter.
Update 2
Let's say
l2 = [1,4,20] How to get rid of all l1 and check if there is a card with the same values of z=1 and b=4 as for a card from l2 ?