It has been called a “gem” and “pretty much the coolest thing ever,” and if you have not heard of it, then you are missing out on one of the greatest corners of the Python 3 standard library: itertools
.
A handful of excellent resources exist for learning what functions are available in the itertools
module. The docs themselves are a great place to start. So is this post.