Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. from copy import deepcopy
  2. from sys import stdin
  3.  
  4. class Matrix:
  5. def __init__(self, matrix):
  6. self.matrix = deepcopy(matrix)
  7. def __str__(self):
  8. return '\n'.join(map(lambda x: ' '.join(map(str, x)), self.matrix))
  9. def size(self):
  10. return (len(self.matrix), len(self.matrix[0],)
  11.  
  12. m = Matrix([[2, 0, 0], [0, 1, 10000]])
  13. print(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement