Could you please help to understand the difference between the below statements:
Let matrix be a square matrix
A = [ item[:] for item in matrix ]
B = [ item for item in matrix ]
Could you please help to understand the difference between the below statements:
Let matrix be a square matrix
A = [ item[:] for item in matrix ]
B = [ item for item in matrix ]
check this thread: