Chapter 2 General Tips

Pythonic Programming — by Dmitry Zinoviev (22 / 116)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Enumerate Your Constants | TOC | Chain Comparison Operators 👉

This chapter contains general tips — the tips that are related to general Python programming. Following them does not make your programs faster or more correct, and not following them does not make your programs slower or faulty. These tips are about programming style and readability — that is, about being Pythonic.

There is a belief among programmers that if a program is not beautiful, it is also incorrect (for some unrelated reason). Pythonic programs are beautiful and, therefore, less likely to be incorrect. Follow these tips; make your programs beautiful.

👈 Enumerate Your Constants | TOC | Chain Comparison Operators 👉

Pythonic Programming by Dmitry Zinoviev can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.