New in Python 3.10 🐍 is the `pairwise` function from `itertools`.
The `pairwise` function allows you to iterate over an iterable, while accessing consecutive pairs of items.
(Like a sliding window of size 2, if you know what that means.)
Here's an example 👇