4 Books to Help You Become a Seasoned Python Programmer

Original article was published by Yong Cui, Ph.D. on Artificial Intelligence on Medium

3. Effective Python by Brett Slatkin

First of all, although it’s less relevant content-wise, this book (the paperback version — second edition, to be precise) has a strong smell that I couldn’t stand initially. So be prepared for that if you do buy it.

This book has ten chapters and discusses 90 specific ways with separate articles to write better Python code. Each chapter has a defined broad topic, such as functions, classes, data structures (lists and dictionaries), and generators. Each article is organized to have the following components:

  • Title — Very assertive. Give specific suggestions or summarize the topic of the article.
  • Opening Paragraph — Set up the context by defining the problem or business need that this article is trying to address.
  • Offer different solutions where applicable — Compare them and highlight why particular solutions are better than others.
  • Summarize — List the important things for the article.

As shown above, each article has the same structure and is written separately. Thus, it’s OK if you just pick some of them for learning. Another feature of this book is to link different articles when they discuss related topics. Therefore, you can jump between articles to have more in-depth knowledge of particular topics.

This book has a chapter called “Collaboration” that discusses various topics related to collaboration among different Python programmers within and between teams. Some topics include sources for Python resources, management of virtual environments, and documentation etiquette.

Overall, similarly to Python Cookbook, this book can be a good reference because of its collection of problem-focused individual articles.