News for hackers. Stuff that matters.
Re:Python: 10 Cool Tricks with the * Operator by L3viathan on Tuesday June 18, 2024 @11:59AM (#40719331)
> 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))`

There are no comments on this comment yet.