Can you explain why there is a difference between the following two statements?
>>> a = [] >>> a.append(1) >>> print a [1] >>> print [].append(1) None Best regards, Jan Sipke -- http://mail.python.org/mailman/listinfo/python-list
Can you explain why there is a difference between the following two statements?
>>> a = [] >>> a.append(1) >>> print a [1] >>> print [].append(1) None Best regards, Jan Sipke -- http://mail.python.org/mailman/listinfo/python-list