Dictionary
Bischoop
martin at jakis.adres.em
Wed Jan 8 13:51:26 EST 2014
Dennis Lee Bieber wrote:
> On Mon, 30 Dec 2013 18:38:20 +0000, Bischoop <martin at jakis.adres.em>
> declaimed the following:
>
>>I have a txt file with some words, and need simply program that will
>>print me words containing provided letters.
>>
>>For example:
>>Type the letters:
>> (I type: g,m,o)
>>open the dictionary.txt
>>check words containing:g,m,o in dictionary.txt
>>if there are words containing: ["g", "m", "o" ]
>>print words with g,m,o
>
> Vague requirement...
>
> Do you need:
> 1 any word containing any single letter
> 2 any word containing all supplied letters (is there a limit on how
many
> letters?)
> 3 any word containing the supplied letters in the entered order,
but not
> necessarily adjacent to each other
> 4 any word containing the supplied letters in adjacent sequence
> 5 any word that begins with the supplied sequence of letters
1.yes
2. Any combination with supplied letters. It would be great if possible that
I could set also the combination for example: show me all words with: l,x
3. the order doesn't matter
4. doesnt matter
5 doesnt matter.
More information about the Python-list
mailing list