Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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))`



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: