Hi,
I'm a middling amateur coder in C and elisp, trying to wrap my head around
python syntax. I've implemented the code for the markov chain random
text generator from Kernighan and Pike's "The practice of
programming", and I'd appreciate any tips on how to make it more
pythonic.
The code appears
On Sun, Feb 03, 2008 at 04:35:08PM -0500, Kent Johnson made several
helpful suggestions:
Thanks!
That cleaned up a lot. However, I couldn't figure out a way to do
random.choice(word_hash[(w1, w2)]) on a dict with set-type values. The
closest I could get was word_hash[(w1, w2)].pop(), but then I n
On 2008-02-21, bhaaluu <[EMAIL PROTECTED]> wrote:
> On Thu, Feb 21, 2008 at 7:32 AM, Kent Johnson <[EMAIL PROTECTED]> wrote:
>>
>> > Other beginning programers shouldn't have any problems using
>> > these routines.
>>
>> As long as they use the same number of rooms and entrance and exit
>> room
On 2008-02-20, bhaaluu <[EMAIL PROTECTED]> wrote:
> As far as I can see, these routines give me the results
> I'm looking for. I get a distribution of four negative numbers,
> four positive integers in the range 10 to 110, and nothing
> is placed in room 6 or room 11:
>
Just for the hell of it, he
Hi,
I'm writing a webpage as a learning exercise. My first objective is to
allow myself to upload files to directories in /images/, and have cgi
scripts automatically generate the pages that will allow users to
navigate through the images.
I have a very basic prototype that does what I want, at l
On 2008-03-16, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
> Tyler Smith wrote:
>> Hi,
>> [snip explanation]
>> Three files follow. First, the html index page, followed by the
>> gallery picker, followed by the thumbnail displayer.
>>
>> Thanks!
>