This executes as I\'d expect:
>>>x=[] >>>x.append(3) >>>x [3]
Why does the following return None?
&g
The append method of lists returns None. It only modifies the list it is bounded to. Same will happen with:
append
None
x = {}.update(a=3)