Re: Result is not Displayed

2016-11-22 Thread Peter Otten
prihantoro2...@gmail.com wrote: > Dear all, > > i am new to Python and have this problem > > = > import nltk > puzzle_letters = nltk.FreqDist('egivrvonl') > obligatory = 'r' > wordlist = nltk.corpus.words.words() > [w for w in wordlist if len(w) >= 6 > and obligatory in w > and nltk.FreqDist

Re: Result is not Displayed

2016-11-22 Thread Irmen de Jong
On 22-11-2016 9:18, prihantoro2...@gmail.com wrote: > Dear all, > > i am new to Python and have this problem > > = > import nltk > puzzle_letters = nltk.FreqDist('egivrvonl') > obligatory = 'r' > wordlist = nltk.corpus.words.words() > [w for w in wordlist if len(w) >= 6 > and obligatory in w

Result is not Displayed

2016-11-22 Thread prihantoro2001
Dear all, i am new to Python and have this problem = import nltk puzzle_letters = nltk.FreqDist('egivrvonl') obligatory = 'r' wordlist = nltk.corpus.words.words() [w for w in wordlist if len(w) >= 6 and obligatory in w and nltk.FreqDist(w) <= puzzle_letters] print puzzle_letters == this