Dictionary project

2006-03-11 Thread brandon.mcginty
Hi All, First, I hope this post isn't against list rules; if so, I'll take note in the future. I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words, starting with 1 character in length, up to 15 or so. It would look like: A B C d E F G ...

Re: Dictionary project

2006-03-11 Thread Michael Spencer
[EMAIL PROTECTED] wrote: Hi All, First, I hope this post isn't against list rules; if so, I'll take note in the future. I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words, starting with 1 character in length, up to 15 or so. It

Re: Dictionary project

2006-03-11 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, First, I hope this post isn't against list rules; if so, I'll take note in the future. I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words, starting with 1

Re: Dictionary project

2006-03-11 Thread Ben C
On 2006-03-11, Michael Spencer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi All, First, I hope this post isn't against list rules; if so, I'll take note in the future. I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words,

Re: Dictionary project

2006-03-11 Thread Michael Spencer
[EMAIL PROTECTED] wrote: ... I'm working on a project for school (it's not homework; just for fun). For it, I need to make a list of words, starting with 1 character in length, up to 15 or so. It would look like: A B C d E F G ... Z Aa Ab Ac Ad Ae Aaa Aab Aac ... If there is adaptable

Re: Dictionary project

2006-03-11 Thread Ben C
So here's a different approach, which I think does meet the spec: from itertools import tee def allwords2(alphabet=abcd, maxlen = 4): def wordgen(): for char in alphabet: yield char for partial in allwordstee[1]: if len(partial) == maxlen: