Learn how batched from the module itertools works, example use cases, and how to implement it.
batched
itertools
(You should c|C)heck out this( awesome)? blog post!+