Advertisement
VanoHa

split the list into sublists

Dec 2nd, 2022
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. l = [i for i in range(0, 101)]
  2. for i in range(0, len(l), 10):
  3.     print([l[i:i+10]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement