Avatar ·

How to tu a matrix (two -dimensional array) by 90 degrees using ZIP?

📁 python, пример, numpy

How to make a matrix tu in one line without Numpy and cycles?

For example, if the original matrix:

  [ 1 ,  2 ],  [ 3 ,  4 ]]  

then the resulting should be:

 [ 3 ,  1 ],  [ 4 ,  2 ]]