generate list of partially accumulated values
buffi
bjorn.kempen at gmail.com
Sun Sep 16 06:06:23 EDT 2007
More information about the Python-list mailing list
Sun Sep 16 06:06:23 EDT 2007
- Previous message (by thread): generate list of partially accumulated values
- Next message (by thread): generate list of partially accumulated values
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Uh... that turned out weird. Anyways, here goes again l = [1, 2, 3, 4] [sum(l[:x+1]) for x in xrange(len(l))]
- Previous message (by thread): generate list of partially accumulated values
- Next message (by thread): generate list of partially accumulated values
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list