On Thu, Dec 1, 2011 at 2:15 PM, Roy Smith <r...@panix.com> wrote: > for suffix in [''] + [str(i) for i in xrange(-1, -20, -1)]: > > It generates the right sequence of strings. But, if you came upon that > code, would it make sense to you, or would you spend half the afternoon > trying to figure out what it did and the other half of the afternoon > ranting about the deranged lunatic who wrote it?
That's a self-contained piece of code.If I came upon it, I'd probably copy and paste it to IDLE, see what it comes up with, and proceed from there. Deranged you may be, but so long as code can be dropped into an interactive interpreter, it's fine. ChrisA -- http://mail.python.org/mailman/listinfo/python-list