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

Would add:

* For dicts, learn .setdefault() vs. .get() vs. defaultdict()

* .sort(key=sortingkey)

* itertools groupby, chain

* map, filter, reduce



Perhaps for another article? :) But thanks, definitely a nice list! My purpose for now was to keep the article 'digestible' as well.




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

Search: