DEV Community

Discussion on: Algorithms Problem Solving: Group the people

Collapse
musale profile image
Musale Martin

I could use a nifty one-line to convert grouped_by_size dict to grouped_by_ids list like this: [*grouped_by_size.values()]. It's in the order of the grouped_by_size keys.