Most elegant way to generate 3-char sequence

Roberto Bonvallet rbonvall at gmail.com
Sun Jun 11 00:09:56 EDT 2006


2006/6/10, SuperHik <junkytownMAKNI at gmail.com>:
> > Not necessarily vying for winner, but David's solution is highly
> > specific as it doesn't do so well for something like
> >
> > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab
>
> Right. But that wasn't the question :p

The question was about elegance, and elegance is when someone asks "do
something 4 times for 5 strings of length 3" and you solve it for "do
something n times for m strings of length p" :)
-- 
Roberto Bonvallet



More information about the Python-list mailing list