exar...@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.)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to