5 ms·
> any generator. For example, the classic range `range` is not a generator. Regarding number 8, instead of `Counter` you can also use dicts: `unique = list(d
by L3viathan 2y ago
> any generator. For example, the classic range
`range` is not a generator.
Regarding number 8, instead of `Counter` you can also use dicts:
`unique = list(dict.from_keys(iterable))`