#transpose of matrix
n,m=map(int,input("enetr the dimensions nxm:").lower().split('x'))
def show(x):
    for var in x:
        s='{:10}'*len(var)
        print('\t',s.format(*var))
print("please give me mat A:")
A=[list(map(int,input('\t').split()))for var in range(n)]
print("please give me mat B:")
B=[list(map(int,input('\t').split()))for var in range(n)]
print("mat A is:")
show(A)
print("mat B is:")
show(B)
r=A[[n][m]]
for m in range(len(A)):
    for n in range(len(0)):
        r[n][m]=A[m][n]
for r in result:
    print(r)
        

d80351fc52b94532b70b60a7bd9ce9b033c48bef
<mask token>

<mask token>


def show(x):
    for var in x:
        s = '{:10}' * len(var)
        print('\t', s.format(*var))


<mask token>

<mask token>


def show(x):
    for var in x:
        s = '{:10}' * len(var)
        print('\t', s.format(*var))


print('please give me mat A:')
<mask token>
print('please give me mat B:')
<mask token>
print('mat A is:')
show(A)
print('mat B is:')
show(B)
<mask token>
for m in range(len(A)):
    for n in range(len(0)):
        r[n][m] = A[m][n]
for r in result:
    print(r)

n, m = map(int, input('enetr the dimensions nxm:').lower().split('x'))


def show(x):
    for var in x:
        s = '{:10}' * len(var)
        print('\t', s.format(*var))


print('please give me mat A:')
A = [list(map(int, input('\t').split())) for var in range(n)]
print('please give me mat B:')
B = [list(map(int, input('\t').split())) for var in range(n)]
print('mat A is:')
show(A)
print('mat B is:')
show(B)
r = A[[n][m]]
for m in range(len(A)):
    for n in range(len(0)):
        r[n][m] = A[m][n]
for r in result:
    print(r)

#transpose of matrix
n,m=map(int,input("enetr the dimensions nxm:").lower().split('x'))
def show(x):
    for var in x:
        s='{:10}'*len(var)
        print('\t',s.format(*var))
print("please give me mat A:")
A=[list(map(int,input('\t').split()))for var in range(n)]
print("please give me mat B:")
B=[list(map(int,input('\t').split()))for var in range(n)]
print("mat A is:")
show(A)
print("mat B is:")
show(B)
r=A[[n][m]]
for m in range(len(A)):
    for n in range(len(0)):
        r[n][m]=A[m][n]
for r in result:
    print(r)
        
