Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62899
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Dictionary |
| Date | 2013-12-30 15:00 -0500 |
| Organization | IISS Elusive Unicorn |
| References | <x4jwu.3413$Bs5.1921@fx09.am4> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4725.1388433616.18130.python-list@python.org> (permalink) |
On Mon, 30 Dec 2013 18:38:20 +0000, Bischoop <martin@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
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dictionary Bischoop <martin@jakis.adres.em> - 2013-12-30 18:38 +0000
Re: Dictionary Walter Hurry <walterhurry@gmail.com> - 2013-12-30 18:56 +0000
Re: Dictionary Bischoop <martin@jakis.adres.em> - 2014-01-08 19:00 +0000
Re: Dictionary wxjmfauth@gmail.com - 2014-01-09 00:31 -0800
Re: Dictionary Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-30 15:00 -0500
Re: Dictionary Bischoop <martin@jakis.adres.em> - 2014-01-08 18:51 +0000
Re: Dictionary Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-08 19:13 -0500
Re: Dictionary Chris Angelico <rosuav@gmail.com> - 2014-01-09 11:21 +1100
csiph-web