a +b ?

Simon Brunning simon at brunningonline.net
Fri Jun 11 10:25:33 EDT 2010


2010/6/11 yanhua <gasfans at 163.com>:
> hi,all!
> it's a simple question:
> input two integers A and B in a line,output A+B?

print sum(int(i) for i in raw_input("Please enter some integers: ").split())

-- 
Cheers,
Simon B.



More information about the Python-list mailing list