[Tutor] Find all strings that....
roadierich at googlemail.com
Thu Nov 10 17:28:22 CET 2011
If you're on linux or OSX, there's /usr/share/dict/words, which has a few thousand words. Although no plurals, which caught me out once. If you're on windows, it's not a hard file to find.
On 10 Nov 2011, at 16:14, Alex Hall wrote:
> What about just grabbing a bit text file, such as from Project
> Gutenberg (sorry for the possibly incorrect spelling)? Or copying the
> text from a large webpage and pasting it into a text file?
> On 11/10/11, Alexander Etter <rhettnaxel at gmail.com> wrote:
>> Hi. My friend gave me a good wake up exercise which I do not want you to
>> solve for me: find all strings which can be converted to alpha with at most
>> two operations, where alpha is some string constant, and a substring of at
>> least length three of alpha must be in the answers.
>> So, my question is: is there a library or .txt dictionary ( not the data
>> type, rather the merriam webster kind ) I can use to test my script on? I'd
>> imagine this library/dictionary to contain thousands of words. Not random
>> Thanks for reading,
>> Tutor maillist - Tutor at python.org
>> To unsubscribe or change subscription options:
> Have a great day,
> Alex (msg sent from GMail website)
> mehgcap at gmail.com; http://www.facebook.com/mehgcap
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
Rich "RoadieRich" Lovely
There are 10 types of people in the world:
Those who know binary,
Those who do not,
And those who are off by one.
More information about the Tutor