a +b ?
alex23
wuwei23 at gmail.com
Sun Jun 13 21:35:52 EDT 2010
exar... at twistedmatrix.com wrote:
> Fore!
>
> print(sum(map(int, input('enter two numbers: ').split())))
Well, I _was_ trying to stick to Steven's more simple map-less form :)
(Although I have to say, I have little sympathy for Steven's
hypothetical "new programmer who isn't familiar with map and reduce".
Python isn't PHP, its built-ins are nowhere near as exhaustive,
something like 80ish vs 2000+ functions? Not exactly a huge lookup
burden.)
More information about the Python-list
mailing list