Skip to content

Instantly share code, notes, and snippets.

@alpden550
Created December 11, 2019 07:33
Show Gist options
  • Save alpden550/e72a7813c7d1394ea192610a64d668bb to your computer and use it in GitHub Desktop.
Save alpden550/e72a7813c7d1394ea192610a64d668bb to your computer and use it in GitHub Desktop.
def create_chunks(products, size=7):
for i in range(0, len(products), size):
yield products[i: i + size]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment