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 ...
[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
[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
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,
[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
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: