append on lists

Jerry Hill malaclypse2 at gmail.com
Mon Sep 15 16:23:51 EDT 2008


On Mon, Sep 15, 2008 at 4:24 PM, Armin <a at nospam.org> wrote:
> Why is the value of a.append(7) equal None and not [1,2,3,4,5,6,7] ??

Because the list a has been altered in place.

-- 
Jerry



More information about the Python-list mailing list