hello, I need a nested list, like this
>>> A= [ [None,None], [None,None], [None, None] ] >>> A[2][0] =77 >>> A [[None, None], [None, None], [77, None]] Because the list is much larger, I need a shortcut (ok I can use a for loop) So I tried >>> B = 3 * [ [ None, None ]] >>> B[2][0] = 77 >>> B [[77, None], [77, None], [77, None]] which doesn't work as expected. any suggestions ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list