problem adding list values
Tomasz Lisowski
list at notmyisp.pl
Fri Dec 23 02:44:28 EST 2005
More information about the Python-list mailing list
Fri Dec 23 02:44:28 EST 2005
- Previous message (by thread): problem adding list values
- Next message (by thread): Pydev questions: versions and keybindings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dave Hansen wrote: > I think what you want is > > for cr in credlist: > credits += cr > > Which could also be implemented as > > credits = reduce(lambda x,y: x+y, credlist) or even: credits = sum(credlist) Tomasz Lisowski
- Previous message (by thread): problem adding list values
- Next message (by thread): Pydev questions: versions and keybindings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list