© Sunil Kapil 2019
Sunil KapilClean Pythonhttps://doi.org/10.1007/978-1-4842-4878-2_1

1. Pythonic Thinking

Sunil Kapil1 
Sunnyvale, CA, USA

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 ...

Get Clean Python: Elegant Coding in Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.