a=[[1,2,3],

[4,5,6],

[7,8,9]]

b=[[1,2,3],

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:

if d==0:

print("Matrix is Identical")

else:

print("Matrix is not Identical")

Online Courses & Fee

FREE Online Certification Courses or Tutorials

[[ CALL - 07976731765 ]]

Details