Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- #matrix = [[random.randint(0, 10) for j in xrange(3)] for i in xrange(3)]
- matrix = [
- [random.randint(0, 10) for j in range(3)]
- for i in range(3)]
- # [[]]
- #for row in matrix:
- #print " ".join(str(x) for x in row)
- for k in matrix:
- print ' '.join(str(a) for a in k)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement