search_terms = ['word','cow','horse']
library = [['desk','chair','lamp'],['cow','horse','word 223','barn']]
I want to be able to print all the lists in the library that contain ALL words in search_terms.
therefore, using the search_terms list above, the second sublist in the library will be printed, although the word 223 just contains the word, but is not a direct match.
I will not always have the same number of rows ...
Thanks to everyone who wants to help me!
and thanks to falsetru for helping me with my first question!
source
share