In this article you will learn about itertools.pairwise, how to use it, and how to generalise it.
Why didn't sin and tan go to the party? Just cos.