[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread sandeep kumar
sandeep kumar added the comment: def generateMatrix(A): d=A-1 data=1 B=[[0]*A]*A for l in range(int(A/2)): i=l j=l for a in range(d): B[i][j]=data print("{0}:{1}:{2}".format(i,j,B[i][j]),end=" ")

[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread sandeep kumar
Change by sandeep kumar : -- title: Bug in methods of creating the list -> Bug in methods of creating the 2d list ___ Python tracker <https://bugs.python.org/issu

[issue43157] Bug in methods of creating the list

2021-02-07 Thread sandeep kumar
New submission from sandeep kumar : def generateMatrix(A): d=A-1 data=1 B=[[0]*A]*A for l in range(int(A/2)): i=l j=l for a in range(d): B[i][j]=data print("{0}:{1}:{2}".format(i,j,B[i][j]),end=" ")