1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.8k points)
selected by
 
Best answer

a=[[1,2,3],

       [4,5,6],

      [7,8,9]]

b=[[1,2,3],

    [4,5,6],

    [7,8,9]]

d=0

for i in range(len(a)):

    for j in range(len(b)):

        if a[i][j]!=b[i][j]:

            d=1

            break

    if d==1:

        break

if d==0:

    print("Matrix is  Identical")

else:

    print("Matrix is not Identical")

...