HELP Newbie solve this Problem

David Fisher python at
Sun Mar 26 09:01:32 CEST 2000

----- Original Message -----
From: "Mark Hathaway" <hathawa2 at>
Newsgroups: comp.lang.python
To: <python-list at>
Sent: Saturday, March 25, 2000 10:02 PM
Subject: Re: HELP Newbie solve this Problem

> Fortran 27 lines unreadable
> Python  53 lines commented
>         22 lines uncommented

Well if it's about lines, here's a Python solution in one line (277 chars).
Of course it's slightly harder to read.

import string,operator;ldict={};map(lambda
print string.join(map(lambda letter:letter+'

This won't work from the Python command line, it has to be run from a
script.  And of course a filename can't have a '?' on a windows box, so it
won't work there either.

This is my first use of lambda (outside of scheme), my mom would be so
proud. :)


More information about the Python-list mailing list