User Tools

Site Tools


pythonic_thinking

Pythonic Thinking

Return to Python topics

“The idioms of a programming language are defined by its users. Over the years, the Python community has come to use the adjective Pythonic to describe Python code that follows a particular Python style. The Pythonic style isn’t regimented or enforced by a Python compiler. It has emerged over time through experience using the Python language and working with others. Python programmers prefer to be explicit, to choose simple over complex, and to maximize readability. (Type Python import this into your Python interpreter to read The Zen of Python.)”

Programmers familiar with other programming languages may try to write Python as if it’s C++, Java, or whatever they know best. New programmers may still be getting comfortable with the vast range of concepts that can be expressed in Python. It’s important for you to know the best — the Pythonic—way to do the most common things in Python. These Python patterns will affect every Python program you write.“

Fair Use Source: B07ZG18BH3

pythonic_thinking.txt · Last modified: 2024/04/28 03:21 (external edit)