The thing that sets Python apart from other languages is that it is a simple language with a lot of depth. Because it’s simple, it’s much more important to write code cautiously, especially in a big project, because it’s easy for the code to become complex and bloated. Python has a philosophy called the Zen of Python, which emphasizes simplicity over complexity.1
In this chapter, you will learn about some common practices that can help you to make your Python code more readable and simpler. I will cover some well-known practices, as well as some that might not be so well-known. While writing your next project ...