Tchae

Untitled

Feb 16th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def constrmat(n,m):
  2.     Z=[]
  3.     for i in range(n):
  4.         Z+=[[]]
  5.         for j in range(m):
  6.             Z[i]+=[i*len(Z[0])+j+1]
  7.     return Z
  8.  
  9.  
  10. print constrmat(6,9)
Advertisement
Add Comment
Please, Sign In to add comment