Tag: Python : Check if a list contains all the elements of another list
Python : Check if a list contains all the elements of another list
In this article we will discuss if a list contains all or any elements of another list. Suppose we have have two list i.e. Advertisements # List of string list1 = [‘Hi’ , ‘hello’, ‘at’, ‘this’, ‘there’, ‘from’] # List of string list2 = [‘there’ , ‘hello’, ‘Hi’] Check if list1 contains all elements of …
Python : Check if a list contains all the elements of another listRead More