Favorite non-python language trick?

Devan L devlai at gmail.com
Sun Jul 3 05:51:49 CEST 2005


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

I think that should work.




More information about the Python-list mailing list