# Why does `zip(*[iter(s)]*n)` chunk `s` into `n` chunks in Python? > This makes possible an idiom for clustering a data series into n-length groups using `zip(*[iter(s)]*n)`. > > — _[python.org zip docs](https://docs.python.org/3.3/library/functions.html#zip)_ During this year's [Advent of Code](https://adventofcode.com/), I've been learning python, and that snippet above blew my tiny little python mind. Let's take a look at everything that's going on here! ```py chunk = lambda s, n: zip(*...