summaryrefslogtreecommitdiff
path: root/progs/a165.py
blob: 9de2d2f461a8619044dca9c158c16f02316934f4 (plain)
1
2
3
4
5
6
7
def pair_wise(l1):
    temp = []
    for i in range(len(l1) - 1):
        current_element, next_element = l1[i], l1[i + 1]
        x = (current_element, next_element)
        temp.append(x)
    return temp