X = [[1, 3], [4,5], [7, 9]] result = [[X[j][i] for j in range (len (X))] for i in range (len (X[0]))] for r in result: print (r)