I have been trying this a lot.
>>> x = [4,5] >>> y = x.append(7) >>> print y None >>>print x [4, 5, 7]
You can do
x = [4,5] y = x + [7] # x = [4, 5] # y = [4, 5, 7]