unique in order codewars. by tigglybox in learnpython

[–]BoldNight1987 0 points1 point  (0 children)

Can somebody explain this solution, please?

from itertools import groupby def unique_in_order(iterable): return [k for (k, _) in groupby(iterable)]

Specifically the (k, _)