import itertools


def pairwise(iterable:list):
    """
    Creates a pair of touples:
        from [1, 2, 3, 4, 5, 6]
        (1, 2), (2, 3), (3, 4), ..
    """
    a, b = itertools.tee(iterable)
    next(b, None)
    return zip(a, b)