f = lambda*x:sum(map(int.__mul__,*x)) print f([2, 7, 5, 1, 9], [1, 2, 3, 2, 3])
Standard input is empty
60
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!