summaryrefslogtreecommitdiff
path: root/progs/a129.py
blob: 3d0f600f26f1aafc6b2f3657ff34356117e3e0af (plain)
1
2
3
from itertools import groupby
def consecutive_duplicates(nums):
    return [key for key, group in groupby(nums)]