0 like 0 dislike
in Examples, Exercises and Projects by (7k points)

1 Answer

0 like 0 dislike
by (7k 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")

Register fast for winter training program at Goeduhub Technologies. We are providing winter training in AI-ML, IoT, Python, Hadoop and PLC-SCADA.

[[ CALL - 07976731765 ]]

...