a = [0]*5 for i in range(0, 4): for j in range(0, i): a[i].append(j)
why the above codes show the following error. and how to overcome it. Traceback (most recent call last): File "<pyshell#10>", line 3, in <module> a[i].append(j) AttributeError: 'int' object has no attribute 'append'
-- http://mail.python.org/mailman/listinfo/python-list