Advertisement
1nikitas

Untitled

Mar 16th, 2022
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. def drawMatrix(matrix):
  2.     for i in matrix:
  3.         for j in i:
  4.             print(j, end='\t')
  5.         print()
  6.  
  7.  
  8. def matrixHorizontalReflection(matrix):
  9.  
  10.     for i in matrix:
  11.         for j in reversed(i):
  12.             print(j, end=' ')
  13.         print()
  14.  
  15.  
  16. def matrixVerticalReflection(matrix):
  17.  
  18.     for i in reversed(matrix):
  19.         for j in i:
  20.             print(j, end=' ')
  21.         print()
  22.  
  23.  
  24. def matrixTranpone(matrix):
  25.     for i in list(zip(*matrix)):
  26.         for j in i:
  27.             print(j, end=' ')
  28.         print()
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement