sum(sequence[0] + [1/element for element in sequence[1:]])

I think that should work.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to