Advertisement
here2share

# matrix.py

Apr 8th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. # matrix.py
  2.  
  3. x, y = 3, 4
  4. matrix = [[0]*x for _ in range(y)]
  5. matrix[2][1] = 2
  6. print matrix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement