I want to check if any element in noun matches any one of the elements in tables.
First element in nous in "devices". Clearly it matches with "projname:dataset.devices". If a match is found, loop should break, else it should check whether second element in noun, which is "today" matches any element in the tables.
tables = ["projname:dataset.devices","projname:dataset.attempts"]
noun = [devices,today]
I tried it with "noun in tables", i got empty result. Is there any other method that I can try with?
Thanks in advance !!
tablesis alist. Alistis a container, you need to check the contents of the container, which is a single string in your example.nounis also a list, and you nee to check the contents of that list against the contents of another list.