100% found this document useful (1 vote)
880 views1 page

The Zen of Python

This document outlines principles of Python programming known as "The Zen of Python" which values simplicity, readability, explicitness over complexity or ambiguity. It promotes readable, simple and sparse code over complicated nested code and errors should not pass silently unless explicitly silenced.

Uploaded by

Sarvesh Kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
880 views1 page

The Zen of Python

This document outlines principles of Python programming known as "The Zen of Python" which values simplicity, readability, explicitness over complexity or ambiguity. It promotes readable, simple and sparse code over complicated nested code and errors should not pass silently unless explicitly silenced.

Uploaded by

Sarvesh Kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

THE ZEN OF PYTHON, BY TIM PETERS

Beautiful is better than ugly.


Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do
it

You might also like