a = [1,1,0,0,0,'yes',1,1,0]
b = [1,1,0,0,0,'yes',0,1,1]
pattern = ['yes',1,1]
#The main lists a and b should check for the pattern in the same order
I'm expecting an output like:
pattern in a - should give 'Yes' or True
pattern in b - should give 'No' or False
Merging the values in the list to form 1 string and checking with an if - in condition is not the path I'm looking for.