HELP Newbie solve this Problem
python at rose164.wuh.wustl.edu
Sun Mar 26 09:01:32 CEST 2000
----- Original Message -----
From: "Mark Hathaway" <hathawa2 at marshall.edu>
To: <python-list at python.org>
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.
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
More information about the Python-list