Re:Ask HN: How did you learn python?
by rahimnathwani on Saturday August 18, 2018 @11:03PM
(#17792326)
I just found this post talking about the book 'Idiomatic Python': https://hackernoon.com/going-beyond-the-idiomatic-python-a32...
It points out some limitations of that book, including one specific example (the 'evil robots attacking' part) that bothered me for the same reasons it bothered the article author.
'Idiomatic Python' is also good, but I would suggest that more for a beginner, or for someone transitioning to Python from another language. If you have a colleague who loops through a collection by creating an incrementing their own counter variable, then give them a copy of this book.
If you already use most of python's idioms correctly (e.g. if you've learned programming primarily from resources about python), get 'Powerful Python' to learn more about how things work under the hood, and learn ways to make your code more readable and/or more efficient (for CPU and/or memory).