Guest User

Untitled

a guest
Jan 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. In [24]: N=4
  2.  
  3. In [25]: res = [a[i*N:i*N+N] for i in range(len(a)//N)]
  4.  
  5. In [26]: res
  6. Out[26]:
  7. [[9, 1, 9, 74888],
  8. [29, 2, 29, 55586],
  9. [29, 2, 29, 19827],
  10. [23, 2, 23, 62839],
  11. [50, 3, 50, 56642]]
Add Comment
Please, Sign In to add comment