Python · Generators & Iterators
What does this print? ``` from itertools import groupby data = [1, 1, 2, 1, 1] out = [k for k, _ in groupby(data)] print(out) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
