append on lists

Fredrik Lundh fredrik at pythonware.com
Mon Sep 15 16:32:18 EDT 2008


Armin wrote:

>>> just a dumb question.
>>>
>>> Let a = [1,2,3,4,5]
>>>
>>> Why is the value of a.append(7) equal None and not [1,2,3,4,5,6,7] ??
>>
>> yeah, that's a dumb question.
> 
> yeah, that's a dumb answer.

did you read your own post?  I did.

</F>




More information about the Python-list mailing list