Favorite non-python language trick?

Devan L devlai at gmail.com
Sat Jul 2 23:51:49 EDT 2005


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

I think that should work.




More information about the Python-list mailing list