diff --git a/snippets/chunk.md b/snippets/chunk.md index a7ae81383..356cc6c54 100644 --- a/snippets/chunk.md +++ b/snippets/chunk.md @@ -2,7 +2,7 @@ Chunks an array into smaller lists of a specified size. -Uses `range` to create a list of desired size. Then use `map` on this list and fill it with splices of `arr` +Uses `range` to create a list of desired size. Then use `map` on this list and fill it with splices of `arr`. ```python from math import ceil @@ -17,4 +17,4 @@ def chunk(arr, size): ``` python chunk([1,2,3,4,5],2) # [[1,2],[3,4],5] -``` \ No newline at end of file +```