Skip to content

TypeScript code snippet – How to divide a list into sublists python?

[lst[i:i + n] for i in range(0, len(lst), n)]
See also  How to tyoecast in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.