a guest Jan 15th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def transpose(matrix):
  2.     matrix_new = [[] for i in range (len(matrix[0]))]
  3.     print (matrix_new)
  4.     for i in range (len(matrix_new):
  5.                     for j in range(len(matrix):
  6.                                    matrix_new[i].append
  7. listm = [[1,2,3],[3,2,1]]
  8. transpose(listm)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand