I am writing a code in Python 2.7 in which I have defined a list of strings. I then want to search this list\'s elements for a set of letters. These letters must be in rando
Using sets and the in syntax to check.
wordlist = ['mississippi','miss','lake','que'] letters = set('aqk') for word in wordlist: if word in letters: print word