@@ -0,0 +1,1027 @@
+#!/usr/bin/env python%0A%22%22%22%0ANPR 2018-12-02%0A%0Ahttps://www.npr.org/2018/12/02/672656517/sunday-puzzle-2-words%0A%0AThink of a common 7-letter word. Drop its second letter, %0Aand you'll get a 6-letter word that does not rhyme with the first. %0AAlternatively, you can drop the third letter from the 7-letter word %0Ato get a 6-letter word that doesn't rhyme with either of the first two. %0AFurther, you can drop both the second and third letters %0Afrom the 7-letter word to get a 5-letter word that doesn't rhyme %0Awith any of the others. What words are these?%0A%22%22%22%0A%0Aimport sys%0Asys.path.append('..')%0Aimport rhyme%0Afrom nltk.corpus import brown%0A%0Abrown_words = frozenset(brown.words())%0A%0A#%25%25%0Afor x in brown_words:%0A    if len(x) == 7 and x.isalpha():%0A        w1 = x%5B:1%5D + x%5B2:%5D%0A        w2 = x%5B:2%5D + x%5B3:%5D%0A        w3 = x%5B:1%5D + x%5B3:%5D%0A        if w1 in brown_words and w2 in brown_words and w3 in brown_words:%0A            if (not rhyme.does_rhyme(x,w1)) and (not rhyme.does_rhyme(x,w2)) and (not rhyme.does_rhyme(x,w3)):%0A                print(x,w1,w2,w3)%0A

Create 1202_non_rhyming_words.py