Program - split list into lists of equal length python
Topic: Program - split list into lists of equal length python
Solution
[lst[i:i + n] for i in range(0, len(lst), n)]
List all Python Programs
Solution
[lst[i:i + n] for i in range(0, len(lst), n)]