Advertisement
michael_xgrind

Matriz

Jan 16th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import random
  2.  
  3. #matrix = [[random.randint(0, 10) for j in xrange(3)] for i in xrange(3)]
  4. matrix = [
  5. [random.randint(0, 10) for j in range(3)]
  6.  for i in range(3)]
  7.  
  8.  # [[]]
  9.  
  10. #for row in matrix:  
  11.      #print " ".join(str(x) for x in row)
  12.      
  13. for k in matrix:
  14.     print ' '.join(str(a) for a in k)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement