problem with itertools permutations in combination with english_words_set in a for loop

I want to get all possible words with 5,6,7 characters from a random string: word="ualargd" I do the following: A for loop to change the length of my permutations. for i in range(5,len(word)+1): mywords=permutations(word, i) The items created by the permutation get compared with an english dictionary set. This works fine as long as i… Read More problem with itertools permutations in combination with english_words_set in a for loop