Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def drawMatrix(matrix):
- for i in matrix:
- for j in i:
- print(j, end='\t')
- print()
- def matrixHorizontalReflection(matrix):
- for i in matrix:
- for j in reversed(i):
- print(j, end=' ')
- print()
- def matrixVerticalReflection(matrix):
- for i in reversed(matrix):
- for j in i:
- print(j, end=' ')
- print()
- def matrixTranpone(matrix):
- for i in list(zip(*matrix)):
- for j in i:
- print(j, end=' ')
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement