NPTEL | Joy of computing using Python | WEEK 7 | Programming Assignment 2: symmetric



NPTEL | Joy of computing using Python | WEEK 7 | Programming Assignment 2: symmetric

Week 7 question 1 :

Week 7 question 2:

Week 7 question 3:

Week 7 quiz:

, , , , , , , ,

2 thoughts on “NPTEL | Joy of computing using Python | WEEK 7 | Programming Assignment 2: symmetric

  1. n=int(input())

    a=[]

    z=[]

    for i in range(n):

    l=[]

    l2=[]

    for j in range(n):

    l.append(0)

    l2.append(0)

    a.append(l)

    z.append(l2)

    for i in range(n):

    o=[int(g) for g in input().split(" ")]

    for j in range(n):

    a[i][j]=o[j]

    for i in range(n):

    for j in range(n):

    z[i][j]=a[j][i]

    if (z==a):

    print("YES",end='')

    else:

    print("NO",end='')

Leave a Reply

Your email address will not be published. Required fields are marked *