SlideShare a Scribd company logo
<<< import this
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.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

More Related Content

PPTX
Philosophy of python
PDF
The Zen of Python
PPTX
Practical Zen of Python
PDF
THE ZEN OF PYTHON
DOCX
Narrative structure
PPTX
Buenas Prácticas de Python
PDF
Web scale
PDF
Python @Wheel Lab
Philosophy of python
The Zen of Python
Practical Zen of Python
THE ZEN OF PYTHON
Narrative structure
Buenas Prácticas de Python
Web scale
Python @Wheel Lab

Similar to Zen of Python (20)

PDF
Look beyond PHP
PPTX
Code Like Pythonista
PDF
Zen and the Art of Python
PDF
Effective Python 90 specific ways to write better Python Second Edition Brett...
PDF
Effective Python 90 specific ways to write better Python Second Edition Brett...
PDF
code review, style guides and tools for pythin
PDF
Os Goodger
PDF
tutorial.pdf
PDF
Modules 101
PDF
Robust Python Write Clean And Maintainable Code 1st Edition Patrick Viafore
PDF
Brogramming - Python, Bash for Data Processing, and Git
PDF
An Extreme Talk about the Zen of Python
PDF
python learn basic tutorial learn easy..
PDF
0802 python-tutorial
PDF
0802 python-tutorial
PDF
Best Python tutorial (release 3.7.0)
PDF
Tutorial edit
PDF
Python everthing
PDF
Intermediate python
PDF
Python于Web 2.0网站的应用 - QCon Beijing 2010
Look beyond PHP
Code Like Pythonista
Zen and the Art of Python
Effective Python 90 specific ways to write better Python Second Edition Brett...
Effective Python 90 specific ways to write better Python Second Edition Brett...
code review, style guides and tools for pythin
Os Goodger
tutorial.pdf
Modules 101
Robust Python Write Clean And Maintainable Code 1st Edition Patrick Viafore
Brogramming - Python, Bash for Data Processing, and Git
An Extreme Talk about the Zen of Python
python learn basic tutorial learn easy..
0802 python-tutorial
0802 python-tutorial
Best Python tutorial (release 3.7.0)
Tutorial edit
Python everthing
Intermediate python
Python于Web 2.0网站的应用 - QCon Beijing 2010
Ad

More from Oded Rotter (20)

PDF
שכל אוניברסליזם אנושיות ושני סוגי אלוהים רציונליזם דתי.pdf
PDF
תקציר סוגיות בעייתיות בתלמוד במקרא ובהלכה.pdf
PPTX
ותובנות שונות גן עדן לוח שנה והדת היהודית במקרא.pptx
PDF
התייחסות לכהונה ולאילן היוחסין עד ימי אנטיוכוכ
PDF
מפקד האוכלוסין של ישראל ומפתח להבנתם כולל האיסור לספרית בני ישראל
PDF
הסיפור המקראי והבנת ספרי המקרא תוך כדי ניתוח הסיפור
PDF
יהוה.pdf
PDF
שלמה המלך.pdf
PDF
ארון הברית.pdf
PDF
the Golden calf.pdf
PDF
exodus from Egypt.pdf
PDF
תפילת חנה.pdf
PDF
עליות משה להר סיני.pdf
PDF
ניהול אנרגיה בארגונים עסקיים.pdf
PDF
חיפוש עבודה באינטרנט.pdf
PDF
Serverless
PDF
PDF
NB-IoT
PDF
PDF
Tls 1 3
שכל אוניברסליזם אנושיות ושני סוגי אלוהים רציונליזם דתי.pdf
תקציר סוגיות בעייתיות בתלמוד במקרא ובהלכה.pdf
ותובנות שונות גן עדן לוח שנה והדת היהודית במקרא.pptx
התייחסות לכהונה ולאילן היוחסין עד ימי אנטיוכוכ
מפקד האוכלוסין של ישראל ומפתח להבנתם כולל האיסור לספרית בני ישראל
הסיפור המקראי והבנת ספרי המקרא תוך כדי ניתוח הסיפור
יהוה.pdf
שלמה המלך.pdf
ארון הברית.pdf
the Golden calf.pdf
exodus from Egypt.pdf
תפילת חנה.pdf
עליות משה להר סיני.pdf
ניהול אנרגיה בארגונים עסקיים.pdf
חיפוש עבודה באינטרנט.pdf
Serverless
NB-IoT
Tls 1 3
Ad

Recently uploaded (20)

PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPT
Ethics in Information System - Management Information System
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PDF
Introduction to the IoT system, how the IoT system works
PPTX
Introduction to cybersecurity and digital nettiquette
PDF
The Evolution of Traditional to New Media .pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
E -tech empowerment technologies PowerPoint
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PPTX
Internet Safety for Seniors presentation
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
artificial intelligence overview of it and more
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
t_and_OpenAI_Combined_two_pressentations
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
si manuel quezon at mga nagawa sa bansang pilipinas
PDF
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
SASE Traffic Flow - ZTNA Connector-1.pdf
Ethics in Information System - Management Information System
Mathew Digital SEO Checklist Guidlines 2025
Introduction to the IoT system, how the IoT system works
Introduction to cybersecurity and digital nettiquette
The Evolution of Traditional to New Media .pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
E -tech empowerment technologies PowerPoint
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Internet Safety for Seniors presentation
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
artificial intelligence overview of it and more
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
newyork.pptxirantrafgshenepalchinachinane
t_and_OpenAI_Combined_two_pressentations
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
si manuel quezon at mga nagawa sa bansang pilipinas
Slides PDF: The World Game (s) Eco Economic Epochs.pdf

Zen of Python

  • 1. <<< import this 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. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!