Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def printpretty(x):
- for row in x:
- print(' '.join(row))
- def Transpose(A, n, m):
- B = [[A[i][j] for i in range(n)] for j in range(m)]
- return B
- a = input().split()
- c = []
- for i in range(int(a[0])):
- b = input()
- c.append(b.split())
- printpretty(Transpose(c, int(a[0]), int(a[1])))
Advertisement
Add Comment
Please, Sign In to add comment