import operatorimport functools multiadd = functools.partial(map, operator.add)print multiadd([1,2,3], [2,3,4]) #=> [3, 5, 7]
Standard input is empty
[3, 5, 7]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!