how to check if any item in list is in anoter list

Solutions on MaxInterview for how to check if any item in list is in anoter list by the best coders in the world

showing results for - "how to check if any item in list is in anoter list"
Bianca
02 Apr 2019
1## checking any elment of list_B in list_A
2list_A = [1, 2, 3, 4]
3
4list_B = [2, 3, 6]
5
6check = any(item in list_A for item in list_B)
7
8print(check)
9# True
Vanessa
20 Oct 2020
1## checking all elements of list_B in list_A
2list_A = [1, 2, 3, 4]
3list_B = [2, 3]
4
5check = all(item in list_A for item in list_B)
6
7print(check)
8# True
Nicole
05 Feb 2018
1##Taking examples of two python lists.
2
3##Take examples of two lists.
4
5list1 = [2,4,0,7,6]
6list2 = [1,0,9,7,6]
7
8##the statement for condition is.
9
10check = any(element in list2 for element in list1)
Auguste
16 Mar 2019
1# checking all elements of list_B in list_A
2list_A = [1, 2, 3, 4]
3list_B = [2, 3]
4
5check = any(item in list_A for item in list_B)
6
7print(check)
8# True
queries leading to this page
if list contains an element that isntcheck if elements in one list are present in other listif 1 element of list in other list pythoncheck if a list is a sublist of another pythonpython check if element in list dont workpython check if in list or other listcheck if list contains values from list 2check if the list contains an element of other loistcheck if an element exist in a listcompare if one list item is in anotherjava check if list contains all elements of another listpython elements of list isin another listhow to get a list of valeus that are in another list in pythoncheck if list includes pythonpython get list element if element not in another listpython check if any item in list is contained by any item in another listfind if an item is in a list pythoncheck if element is inside a list inside a list pythonhpw t check if an ellemtn is in a listpython check if string in listif list of list contains any list from another list of list pythonone list items all items exist in another list pythonpython contains listhow to check an element is in a list pythonhow to check anyone of the elements are in a listcheck whether elements in list present in another list in pythoncheck if list is in another list pythoncheck if all strings in list are in another list pythonif is in list pythonpython how to check if one list has all elements of anothherhow to find if an element is in a list pythoncheck ifany values in list match another listcheck if list of lists already contains item pythoncheck for items in a list pythonpython check if any item in list is in antoher listcheck if a list contains a value pythonif in listpython check if list has itemif number in list statementpython check if all elements in list exists in another listcheck if every item in a list is in anothe list pythonhow to check if element not in list pythonpython list in list checkif one elemint is another list pythoncheck if list is included in another list pythonpython list contains all elements of another listcheck if elements of a list exists in another list pythonpython check if list in listcheck if any element of a list exist in an other list pythonhow to check if all elements in a list are in another list pythoncheck if list element is in another listhow to find if an element is in a listcheck if elements in one list contains all elements in another list pythonpython check if any element of one list is in another listchech if item are in listcheck if list contains list pythonfind if all elements of a list is present in anotherhow to check list has value in pythoncheck element in list python other listfind if list contains element pythonif an element in one list is in another pythontest if has an listcheck if element if present in python lista list contains any item from another list pythonif an element in a list is in another list pythonpython check if all element of a list is in another listtest if items arnt in a list pythonpython check if list contains in otherpython see if value is in list of listscheck if element from list is in stringpython check if values in list is in other listcheck if all elements of list are in another list pythonhow to check if list contains all items of different list pythoncheck if something is a list pythonpython if any element in list not in another listfind if list is in string pythonfunction to check if a value is in listhow to check if a element present in a list in pythoncheck if list has itemhow to check for an element in a list in pythonpython check if all list elements are in another listcan i use in list if in 3epython how to check if an element on a list matches another elementcheck if an element available in list check if number is in a listpython check if list exitspython check if element is in listhow to check wether a list contains an element in pythoncheck if list contains any of the elements in another list javapython check if list elements are present in another listchek if item in listcheck if all elements of a list are in another pythonhow to check if a lits matches a list in pythonpython only include items of one list if not in anotherhow to check for elements of list in another listcheck surrounding element in list pythonhow to check if list item is in another listcheck whether an element in a list is present in other list pythonpython check if element of list in another listcheck if element sin list is in another list pythoncheck if any of the elemeny present in the listpython check if values is in listpython if element from one list is in another listif element in listif i is in list pythonhow to check if list is in another list pythonpython check if one object contains all elements of another listpython if inlistcheck if a value is in a list in pythonhow to check a value exist in a list from another list pythonhow to chech if an item is contained in another listcheck list contaains other listif any element in list 1 is in another list pythoncheck if elements of a list are in another list pythonhow to see how many elements in one list are in another list pythonpython check if list contains any elements of another listif any item of list is present in other list pythoncheck if value in list a is in list b or cpython check if all elements from one list are in anotherpython check if all item in a list are in another listpython something is ont in the list checkpython see what element in a second list that is in one list stringcheck if list item is present un other list pythonhow to check if elemts of oen list is present in list anoother listcheck if an element of list exists in another list pythoncheck if is in list pythonpython to check if list elements are in different listcheck if current list element is in another listcheck list exist in another list and loop in pythonpython program to check if one list contains elements of another listone list ele exist in another listpython if list has elementcheck if list contains strings from other listpython list not in another listpython check if any item in list matches any item in another listhow to check if number is in listpython checking item in the list is in another listcheck in list pythonhow to check if another list contains the elements of another list in pythoncheck if item in list pythonhow to check if something is a list in pythonsee if any item in a list is in another listsee if list contains element from anotherhow to check if only the given element in list pythonpython any list value in another listhow to check if a list is within another list in pythonpython if elem in listcheck if list is inside another listpython check if element not in listhow to check if a list of items in another list in pythonpython how to check if a list contains an itemhow to check if an element in a list is in another listpython if list in listpython check if item in listcheck items that are in one list and not in anothercheck if list contains all elements of another listif the elements in the list contains in another listhow to check if number is in a listhow to see if a list has one more element than another list pythonpython verify that all elements of a list are present in an other listcheck if both elements of list exist in setsee if an element of one list doesnt exist another listhow to check if list element is different pythoncheck if number is in a listpython check if list contains another list in ordersee if any values in list are in another listcheck if a list element is present in another list pythoncheck if a all list values exist in another list in python python if one list not in another listcheck if number is in list pythonhow to see if a list contains an elementlist of elements exists in another list of elements in pythonpython if array contains value from another listsee which values are in one list in another pythoncheck a list contains a list of values pythonpython chek if a list contains an elementcheck if list is in another listcheck if list contains value pythoncheck if values of a list not in another list pythonpython check if all elements in list are in another listcheck if one list contains any items in another list nodehow to check if something is inside a listcheck if an array exist in other pythonpython check if element in list is in another listpython check if every element in list is in another listcheck if list contains another list using count 28 29 pythonpython check if a list contains an element of another listcheck if item in list is a substring in any item another listhow to check all the list element are present in another kistcheck if list are in list pythonverify each element in list python match with another listpython check if number is in listpython how to check if any element of a list is in anotherif list is in list pythoncheck if items in a list of sting present in another list in pythonpython check if list contains all elements of another listpython check which element of a list is not in another listpython if member in listcheck if a list contains an item pythonpython check if list is in listpy check how many items in one list are in another listpython if item is in listhow to check if any value contain of the one list is contained in another listcheck elemens of a list inside other listpython if element is inlistcheck if element not in list pythonif list item not in list pythonpython check if list contains in anothercheck if the elements of one list exists in othercheck if any element of a list exist in another list pythonhow to check if some elements of a list is there in other listcheck all list items exist in all another list in pythoncheck if element in one list and not in other pythonif any in list pythoncheck if still has items in list pythonhow to check if an element of a list is present in another listpython element list contains all elements another listhow to check one list elements present in another list pythoncheck element is in list pythoncheck which elements of a list are contained in another list pythoncheck if any value from list exists in another list pythoncheck if a list exists in another list pythonpandas check if list contains elements of another listpython if any in list in another listif any element of one list is in anpther listpython string contains any of listpython if an element is in a listcheck if every element of list exist in another list pythonsee if every element from list is in other list pythonpython if one list is in anothercheck if a list contains any item from another list pythonhow to print a list if it is present in another list in pythoncheck if value is in listsee if any item in list is in another list pythonhow to say if any item in list is in another list print pythonpython if item or item in listcheck if a number in a list is in another list pythonpython test if string is in listcheck list item present in another list pythonhow to check if list contains an element in pythonpython list contains another listlist out those elements in list present in another list in pythonhow to check if item in one list exists in another pythonfind if values in one list exist in another pythoncheck if list exist in another list pythonchecking strings of one list in other listchecking item in the list in another list pythonpyhton check if element is in the listif list contains any element of listhow to check if all the elements of a list is in another listpython how to check if one element in a list is inside another variableif element of one list appears in another listif any 28list 29 in listpython is item in listhow to check if any item in one list exists in anotherhow to detect if there is an item in a listcheak if item in list contain 2b using pytohncheck if every value of a list is in another listcheck which list of elements in another list pythonsearch for element of one list present in another list in same order in pythondetect if a item in a list contains a stringcheck if list of items in listcheck if it is a list pythonpythoncheck if list cointains more than another listcheck if list of list matches another list of listif object not in list pythoncheck if a list contains all the elements of another list pythonpython 3a check if list contains another listif any element in list is in another list pythonhow to check if list contains an item pythonpython if list inside list containscheck if elements in one list are in another pythoncheck if list items are in another listwhen a list item contains another entire list in htmlpython if in list of listshow to check if a list has the values of another listcheck if any element is a list matchs the other list pythonif list in list pythonif all items in list in another listif list item in string pythonpython check if a list is inside other listcheck if item is in list pythonif i in list pythonif number in list pythonif any item in list in another list pythoncheck exist item list in another listpython if its in the listcheck elements in list other list in pythonpython check if list contains elements of another list return two listcheck if values from one list are in another pythonhow to check if an item is in a list pythonpython if some element in list in another listcheck if list contains listif an item is in a listcheck if a string in one list but not another pythonhow to check if all of the elements in one list in an another pythonpython if any in listpython check if list has elementhow to check if an item from one list is in another list pythonpython check if any item from one list is in anotherhow to check if elemetn not in listassert to check elements of list not in another listpython check if list of lists contains any element of another listcheck if element in list or not pythonhow to check if an element of a list is in another list pythonlist where value is contained in another listcheck list element present in other lists pythonpython if list is in another listcheck if an element from one list is in another list pythoncheck if the list contian all item in other listcheck if list in python has an element 5cpython check if one element of a list is not in another listpython check if a list contains another listcheck an item in a list pythonhow to check if there is a list in a listcheck if in list pythoncheck if list doesn contains any element pythonhow to check if an element is in a list pythoncheck if all elements of list exist in another list pythonif item in list in another list pythoncheck if any of element of the list is in another lsitcheck if elements of a list are in another list python using assertcheck if a values in not and list and in another list pythoncheck whether a number is in listhow to check if any element in a list is in another list pythonhow to check if a list contains any value from another listcheck if any element in a list isnt in another listfind list contains all element of another listcheck if items in a list present in another list in pyhtonlist one contains element not in list2 pythonhow to check if an element of a list is a specific itemhow to check any element present in list in pythoncheck if values in one list are in another listlist contains pythoncheck what element of list are in other listhow to check if all list values are present in another listhow to check if all values in list are inside another listcheck element in list pythoncheck if element is in array listpython check if one list contains all elements of another listpython check element in list in another listcheck if a number is in list pythoncan you use in to check if a list contains items in another listcheck if a list contains another list pythonif list in other list pythonpython check list for value from another listhow to check if any value in list 1 is present in list2python check for items in listif list appears in other list pythonpython check of list contains any elements form another listhow to check if any element in list is inside other list in pythonhow to check if list components is in another list pythonhow to check if an list contain an listcheck that list has all elemetns in another listhow to check if a list has one item in anotherget elements of a list that match items on another list pythonfunction to find if an item in a list is in another list code in pyhtonptyhon check if a list contains another listtest if number is in list pythoncheck if any element in one list is in another listhow to check if number is in a list pythonpython check if an item is in a listchecking if values are in a list isincheck if a list contains a specific item pythoncheck if value from one list is in another llisthow to check an element in a list in pythonpython if an item of list in other listpython check if element in listptyhon check if all elements of a list in another listcheck if a list contains an item from another list pythoncheck if elements in list is in another list pythoncheck if list contain an elementpython any item in list in another listget elements of list tha present in other list pythonhow to check if a list contains a list in pythoncheck if element of list is in another list pythonpython check if items in list appear in another listhow to check if all item of one list are in another pythonchecking if list inside list pythonpython check if an item in a list is in another list setpython list contains in another listhow check if a number is in a listcheck if all values in list are available in another list in pythoncheck all elements in set are in another pythonhow to check if some elements of one list belong to another list pythonhow to check if a list matches another list in pythonpython how to see if a list contains somethingget a list of elements if they are cointanted iwthin another list in pytohnif list elements containspython check if item in list is in another listpython if this is in the listpython check list elements in another listpython check if a list has all values of another listretun if items in list are in another list pythoncheck if list in another list pythonif list contains an element pythonpython if a list contains value in another listlist contains all another listpython if any item in list matches any item in another listpython if any item in list is in another listhow to check if a list in present in a nested list pythonpython check if list contains another listhow to check if it is a list in pythoncheck if element of list is in other text pythoncheck if element exisst in python listsee if item is in list pythonhow to check a variable list against another in excel pythonpython list is in another listpython check if item in list existshow to check if a list has anoyther list in itcheck if list has items pythonsee if item isn 27t in a list pythoncheck if elements in list are in another list pythoncheck if any part of list in other listhow to check if a list is within other list in pythonif element of one list equals any element of other list pythonhow to check elemnts of list 1 freinst in list2if number is in a listhow to check if element in list pythonif list contains a and b pythoncheck if element already in list pythonhow to check if all the elements in one list are in another list pythonpython how to check if a list of items is the same as another list of items pythonget elements od a list contains any item from another list pythonif all item in first list present in secomg return truecheck if a list of numbers exists on another list pythonany element from list exist in other list pythonhow to create a list based on whether values are also contained in another list in pythoncheck if all elements of list in another list pythonpython check if a list of list contains a listpython check if a list has other listcheck if array contains all elements of another array pythonif any of the elments of a list are in a string pythonhow to check all the list element are present in another listcheck if element from a list exists in another list pythonpython if one of list in listhow to check each element ina list is present in another list pythoncheck if data in list exists in another list pythoncheck if list contains element from other list pythonhow to see if a number is in a list in pythoncheck values in a list is present in another list pythoncheck if element present in list pythonpython check if any item in list in is in a listif list sequence appears in other list pythoncheck if an element is in a list pythonhow to check if any element in a list is matching with another element of a list pythoncmpare whethere element of one list present in another in pythoncheck if number in a list pythonhow to find if an entire list b is in a list aknow if a element in a list is present in another listpython check if list is not present in another listcheck if list contains all elments of another lkistif elements in list isin other list pyhtonhow to check i a list contains any word of list stringpython check if element contaned on listif item in list pythonpython see if in list in listpython check if any item in list is in another listcode to check items in a list pythonhow to check if item is in list pythonpython check if list in the listif item is in list pythoncheck if elements of one list are in another pythonpython check if list containscheck if element of one list exists in another pythonif an item from a list is in another list pythoncheck if list contains elementhow to check if a list contains all values in another listcheck if val in listcheck if a list is in another list pythoncheck if a list is present in another list pythonpython check if items in one list are in anothercheck if list contains elementscheck if any list value match with other list pythoncheck both list contains one element pythoncheck if all of a list of element are in another list pythoncheck if all the elements of a list are in other listsee if an element from a list is in another list pythonlist contains other list pythoncheck a list for an item in another list pythonpython programme to check if all elements of one list are present in another listhow to assert values in one list are present in another list pythonfind if an element in a list or not pythonhow to get a value exist in a list from another list pythonhow to check if a list contains elements in another listcheck if elements exist in other listshow to check if a list is present in another list in pythoncheck if an element of a list is in another list pythonif something is in a list pythonpython check if all elements of one list are in anotherpython element in list checkcheck if element of one list exists in another list pythonpython check if list in another listcheck if list contains element pythonpython list items in another listpython check if list have a elements in another listhow to find if any element of one list is in another list pythoncheck if list is present in another list pythonpython check if in listcheck to see if something is contained ina listcheck if list exists in another list pythoncheck if a list contains an elementhow to see if a number is in a listcheck if each word in a list is in another listpython if element is in listsearch if element exist in list of listhow to check if an item is a list pythonhow to check list elements exist in other list in pythoncan a list contains another list in pythonhow to check if all elements of one list exist in the othercheck if any element in list is in another list pythonpython check if items in list re in other listpython check any items in list in stringhow to check if an item in a list is in another listchecking if a number is in a list pythonpython check if item from list in another listhow to check if the list has listpython check if elements of one list are in anotherlist containschecking if a list items in other list pythoncheck if number is in listhow to check if a list contains another list pythonpython if list value is in another list check if a list contains an element pythoncheck if one element from list is not in other list pythonif list contains any element of another list checklist if list comtains a valuiecheck first list in second list pythoncheck if any item in a list is in another list pythonpython if list contains value from another listcheck if every element of list is in another listpythonhow to check if a list has an item in pythonpython check list intens in another listpython if is in listhow to check if a list appears in a listitems in list is in another list pythonpython check list 1 in list 2check if an item in a list pythoncheck if list elements in another list pythoncheck if one list contains any of othercheck if element from one list is in another pythoncheck if list contains n elements of another list pythonif object in list exists in listcheck if any element of list is in another list pythontrue if any item in listcheck if a number in list pythonhow to tell if a list contains a list pythonone list contains the other listif element in list pythonpython see if item is in listpython list contains element of another listcheck if values in list are in another list pythoncheck if any element of the list is present pythonchecking if a list contains an elementphyton if list contains another listpython cheack if items in list apear in another listpython check if list contains listhow to check an item exist in listcheck if any elements of a list are in another list pythonhow to check a different element in a listcheck if elemente xisyt in listcheck if strings in a lit are in another list python check if in a list exist objectif any list not in list pythonhow to check if any item in list is in anoter listcheck if list is contained in another list pythoncheck if one list contains element from the list pythoncheck if any item in list in another list pythonpython check if list contains elements of another listif list of list contains any list from another list of listpython check list in another listchek every element in list is present in another list pythonhow to check if something is in a list pythonhow to check if a list is in a list pythonhow to check if a list exists in another list pythoncheck if list is contained in another listhow to check if there is a list inside a list in pythonhow to check item in list pythonlist contains in pythonif is in listcheck if any element in a list is in another list pythonnumpy check if a list is in antoher listcheck if list contain another listhow to check a list for an item pythoncheckif a list contains check if any value in a list is in another list pythondetermine if a list contains an element pythonpython check if one list contains anotherpython how to check if an element on a list matches anotheris all element in on list in another listsee if item in list pythoncheck if all elements of a list are in another list pythonhow to check i a list is included in another list pythonhow to check if an item in a list is in another list pythoncheck if element inside list pythobnchecking if a list items in another list pythonpython how to check if an element on a list matches another element same listcheck element in list that is not in other listcheck if number in list pythonhow to check if a list contains one itemif item is list pythonreturn if items in list are in another list pythonhow to see if value in one list in in another list pythonpython elements of list in another listcheck if list already contains item pythoncheck which element is a list matches the other list pythonhow to test if one iteam is in another list pythonlist that contains another listesif value in list of listsif one list item in other pythoncheck if exist in listcheck if element in list is found in another listcheck if all items in list are in another list pythoncheck if present in a list pythonif list value inpython check if values in list are in another listcheck if the element includes in list pythonhow to checks if an element is in the listhow to check if there is a list in a list pythoncheck if the same elements is present in another lists containcheck if a value in one list exists in aniother o 28n 29if numbers in list is in another list pythoncheck if a number is in a list pythonfind in list using another list pythonpython check item in listpython any of one list in another listcheck for an element in a list pythoncheck if item is a list pythoncheck if item in list is in string pythoncheck if item exist in listcheck if element is in list pythonpython check if one list is contained in anotherpython tell if a list has all elements of another listif in list do something pythonlist function to keep the items which exist in another list in pythonif item in listcheck if any value in list is in another list pythonif a list is contained in a listhow to check list elements exist in other list in python isinpython if item in listcheck if elements in one list match elements in another list pythocheck if a list item contains any word from another list pythoncheck if list contains any element from another listcheck if list is in otherhow to check if somthing in one list is in another pythonpython check if elements in list are in another listcheck a if a list of values is part of another list in pythonfind if list values are in a listpython if in list 2bif an element of list is found in another pythonpython tell if one list is in anotherycheck if any value in a list is in another list pythonif all list in another list pythonpython one list exist in othercheck if a list contains in another list pythonpython check if list element in another listpython check if element of list is in another listhow to check if a list contains an item pythoncheck all list items exist in another list in pythoncheck if items in a list are in another listpython if list in other listcheck if element in list pythoncheck if item is in listcheck if any element is a list matchs the other list and get the element pythoncheck if values in list pythoncheck if list item is in another list pythonhow to check element in list in pythoncheck if an item is in a list pythoncheck if list in other listpython if 1 element in the list matches another listcheck if one list contains element from the other pythonpython how to check if a number is in a listpython check if one element of a list is in another listcheck if list contains an itempython check if list elemetn in other listpython check if another item in listcheck if list inside list pythonpython check if list contains same elementcheck if elements in one list contains all elements in another list pythopython check if number in listcheck if all elements in a list are in another list pythoncheck if item in list is in another list pythonpython if something from list in another listcheck if elements are part of other list pythonpython if list contains all elements of another listhow to know if some element is in the list or not in pythonpython check list in list anothercheck if any item in list is in another list pythonpython list value in another listpython compare if something in list 1 is in list 2python if any in list in other listjava find list contains any of the listhow does if in work for lists pythonhow check if a number is in a list pythonpython list contains lista list that contains another list within it is calledcheck if item already in list pythoncheck if list contains elements from another list pythonhow to check if an element in a list has a number pythonhow to check if a list is in another list pythoncheck if a list is fully contained in another list pythoncheck if element in list using if functionpythoncheck if any element of list 1 is in other listsee how many elements of one list are in another list pythonhow to check item in one list is present on anotherpython check if list is in another listpython check all items in list are in another listhow to check a list is not contained in another list in pythonif any value in list pythonpython if list in another list in orderwhether list 2 in list 1 python check if list appears in another list pythonhow to check if all items in a list are in another list pythonpython check if an element is in a listhow to do if a list contains an item pythonhow to check if list contains item pythonhow to check if one list contains in another list python check if items in list are in another list pythonhow to check if elements in list are in other list pythonpython if i in listlist python how to check if in a listhow to check if list contin all element in another listcheck if a list is inside another list pythoncheck if list present on another list pythonpython list contains elements of another listhow to check whether a list contains an element of another list in pytthonany from this list exist in another listchecking if varible in a list in other list o 28n 29how to check if a list contains specific elements in pythonpython list containing another list with integercheck which element in a list matches the another list pythonpython check list contains another listcheck list of elements in another list pythonelements of list1 in list2 pythonhow to check if there are other elements in listfind that all list contains another list pythonensure one list contain anotherpython check if members of one list exist in anothercheck if items in one list exist in another pythoncheck if list in list pythonhow to check if number in one list is in another lsit pythonhow to check if one list include elements from anotherpython if list has elementsif it is in a list pythonhow to check if item in list pythonpython check if list contains elementif a list is in a string pythonpython check if list in other list python 3a check if list contains elementhow to check if all elements of a list are present in another list pythonpython check if any element in list is in another listcheck 3d all 28item in list2 for item in list1 29 if check is true 3acheck for element in list pythonpython check if list appears in other listcheck if an element is in a listpython how to check if there 27s 1 in a listhow to check if list contains an list of items pythonpy if any elements of list are in another listcheck if item is in a list pythoncan a list in python contains another listpython check all elements in list is in other listget list from contains from another listpython check if a list has elements from another listcheck if string in list of lists pythonhow to check if a list contains a number in pythonif list of list contains anycheck if every element of list in another listpython check element in listcheck if any element of a list is in another list pythonpython check if list element exists in another listpython list contain element from another listhow to see if a list contain all elemntst off another listhow to check if list is present in another listcheck if a list is included in another list pythonpython check if item is in listpython check if all elements of list are in another listcheck if all the elements in the list are in a string pythoncheck if list contains another list pythonpython check if one item from list is in another listcheck if something is in a list pythonpython check if list contains an elementcheck if items from list is found in another list pythonprint the list if it is present in another list pythonif number in list statement pythonlist contains another listhow to check if a list contains only one elementhow to see if a list containshow to check that list contains different elemntscheck if list in string pythoncheck if a string contains all elements of a listcheck if list contains specific item pythoncheck if list contains a number pythoncheck the elements of on list in other list pythonpython test if any element of a list exist in another listprint if values in list of lists are in another list pythonverify if list is 3e than another listcheck if an element in list matches another in another list pythonhow to see if a list contains an item pythoncheck if element in listhow to find list1 list2 in pandaspython check if one element in list is in anotherbet way to check if items in list exists in other listhow to check if any item in list is in anoter list