Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from copy import deepcopy
- from sys import stdin
- class Matrix:
- def __init__(self, matrix):
- self.matrix = deepcopy(matrix)
- def __str__(self):
- return '\n'.join(map(lambda x: ' '.join(map(str, x)), self.matrix))
- def size(self):
- return (len(self.matrix), len(self.matrix[0],)
- m = Matrix([[2, 0, 0], [0, 1, 10000]])
- print(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement