Why does this work -
a = [] a.append(4) print a
But this does not -
print [].append(4)
The output in se
The method append returns no value, or in other words there will only be None
append
None
a is mutable and the value of it is changed, there is nothing to be returned there.
a